Internal_GetGUIDepth() 정적인 개인적인 메소드

static private Internal_GetGUIDepth ( ) : int
리턴 int
예제 #1
0
 internal static void CheckOnGUI()
 {
     if (GUIUtility.Internal_GetGUIDepth() <= 0)
     {
         throw new ArgumentException("You can only call GUI functions from inside OnGUI.");
     }
 }