Синтаксис:
Используется csharp
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.GUI.Box (Rect position, System.String text)
Notifications.Update () (at Assets/Scripts/Classes/Notifications.cs:41)
UnityEngine.GUI.Box (Rect position, System.String text)
Notifications.Update () (at Assets/Scripts/Classes/Notifications.cs:41)
Код функции:
Синтаксис:
Используется csharp
void Update () {
GUI.Box(new Rect(0, 0, Screen.width, Screen.height), "This is a title");
} // Update
GUI.Box(new Rect(0, 0, Screen.width, Screen.height), "This is a title");
} // Update
Строка 41 - это и есть GUI.Box ...
Я ничего не понимаю (( почему? Что не так?
Куда смотреть?