Question by 
               sailor27 · Jan 28, 2017 at 04:16 PM · 
                javascriptscripting problemscenegamescreen  
              
 
              Correct Call function On Gui ?
Problem This Script : Object.GetComponent(Score).OnGUI();
Error Console: ArgumentException: You can only call GUI functions from inside OnGUI. UnityEngine.GUIUtility.CheckOnGUI () (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUIUtility.cs:224) UnityEngine.GUI.set_skin (UnityEngine.GUISkin value) (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUI.cs:50)
What is the Proper Method to call Function OnGui?
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                