When calling Invoke() in Unity use nameof() expression to avoid bugs 🙂
Автор: Sunny Valley Studio
Загружено: 2023-09-19
Просмотров: 2513
Описание:
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
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: