Hi Guys,
I am currently trying to get to grips with Unity by creating a simple little 2D scroller for Android.
The Character Controller I am using is the “2D Side Scroller” Prefab in the Mobile Standard Assets which I can get working well. However when I Load the next level using Application.LoadLevel and move onto the next Scene (which has the same controller prefab) every time I hit one of the touchpads there is an error in the console which reads :-
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)
It doesn’t stop the touchpads or the game working however the console window obviously fills up rather quickly with all these errors.
Is this something any of you have come across before and solved or if anyone could hazard at a solution I would be grateful.
Also when I start on any of the levels there are no errors.
Thanks,
Ian