Internal_Draw2() private static method

private static Internal_Draw2 ( IntPtr style, Rect position, GUIContent content, int controlID, bool on ) : void
style System.IntPtr
position Rect
content GUIContent
controlID int
on bool
return void
コード例 #1
0
 public void Draw(Rect position, GUIContent content, int controlID, bool on)
 {
     if (content != null)
     {
         GUIStyle.Internal_Draw2(this.m_Ptr, position, content, controlID, on);
     }
     else
     {
         Debug.LogError("Style.Draw may not be called with GUIContent that is null.");
     }
 }
コード例 #2
0
ファイル: GUIStyle.cs プロジェクト: zuohu/UnityDecompiled
 public void Draw(Rect position, GUIContent content, int controlID, bool on)
 {
     if (Event.current.type != EventType.Repaint)
     {
         Debug.LogError("Style.Draw may not be called if it is not a repaint event.");
     }
     else if (content != null)
     {
         GUIStyle.Internal_Draw2(this.m_Ptr, position, content, controlID, on);
     }
     else
     {
         Debug.LogError("Style.Draw may not be called with GUIContent that is null.");
     }
 }