Hello everyone,
I want just to say first that I am a begginner. I’m creating a 3d web app and my code throws a NullReferenceException. I was thinking that could be a general case:
NullReference Exception: Object reference not set to an instance of an Object
UnityEngine.GUILayoutUtility.EndLayoutGroup()
The thang is that there is no line to check out to fix this.
I was thinking that was because of the way I affect the GUI.skin property. I make that inside OnGUI function. Which is called at each frame… (?)
function OnGUI()
{
GUI.skin = mySkin;
}
Is it a proper practice?
Thanks for your attention.
Regards,
Odissey