When calling Invoke() in Unity use nameof() expression to avoid bugs 🙂
If you use Invoke("NameAsString") to delay a method call in Unity try using nameOf(..) expression, instead of passing a string argument directly👍⌨️
➡️Invoke(nameof(MakeItRain), 3); ⬅️
This way you can easily change the name of a method and avoid bugs connected to typing it by hand 🪲🙂
#UnityTips #unity2d #unity3d #gamedev #gamedevelopment #indiedev #IndieGameDev #shorts
Видео When calling Invoke() in Unity use nameof() expression to avoid bugs 🙂 канала Sunny Valley Studio
➡️Invoke(nameof(MakeItRain), 3); ⬅️
This way you can easily change the name of a method and avoid bugs connected to typing it by hand 🪲🙂
#UnityTips #unity2d #unity3d #gamedev #gamedevelopment #indiedev #IndieGameDev #shorts
Видео When calling Invoke() in Unity use nameof() expression to avoid bugs 🙂 канала Sunny Valley Studio
Комментарии отсутствуют
Информация о видео
19 сентября 2023 г. 13:55:00
00:00:20
Другие видео канала