Internal_GetGUIDepth() static private method

static private Internal_GetGUIDepth ( ) : int
return int
コード例 #1
0
 internal static void CheckOnGUI()
 {
     if (GUIUtility.Internal_GetGUIDepth() <= 0)
     {
         throw new ArgumentException("You can only call GUI functions from inside OnGUI.");
     }
 }