Hi, I can’t seem to figure out this error message. I would appreciate any help.
I am creating an iOS game and when the player walks into a trigger, it will transfer him to another level (scene). Each time I remotely play each level seporately, everything is fine but when I play from one level and trigger the change level trigger, I get this error message:
MissingReferenceException: The object of type ‘GUITexture’ has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.GUITexture.set_pixelInset (Rect value)
Joystick.ResetJoystick () (at Assets/Standard Assets (Mobile)/Scripts/Joystick.js:97)
Joystick.LatchedFinger (Int32 fingerId) (at Assets/Standard Assets (Mobile)/Scripts/Joystick.js:115)
Joystick.Update () (at Assets/Standard Assets (Mobile)/Scripts/Joystick.js:183)
I am using the iOS first person controller for all my levels. In fact, I even made a prefab of the first person controller because I added a triggering sphere on it so that the players can change levels. Even when I used the “stock” first person controller, I still received the error. I did not change anything on any of the scripts of the mobile first person controller. The game works fine when I build it and install it on my iPhone. I just don’t like having error messages.
Thanks for any help you may give.