private static void Internal_Draw(IntPtr target, Rect position, GUIContent content, bool isHover, bool isActive, bool on, bool hasKeyboardFocus) { Internal_DrawArguments arguments = new Internal_DrawArguments { target = target, position = position, isHover = !isHover ? 0 : 1, isActive = !isActive ? 0 : 1, on = !on ? 0 : 1, hasKeyboardFocus = !hasKeyboardFocus ? 0 : 1 }; Internal_Draw(content, ref arguments); }
public void Draw(Rect position, GUIContent content, bool isHover, bool isActive, bool on, bool hasKeyboardFocus) { if (Event.current.type != EventType.Repaint) { Debug.LogError("Style.Draw may not be called if it is not a repaint event"); return; } GUIStyle.Internal_Draw(this.m_Ptr, position, content, isHover, isActive, on, hasKeyboardFocus); }