UnityEditor.ModuleUI.GetControlRect C# (CSharp) Method

GetControlRect() protected static method

protected static GetControlRect ( int height ) : Rect
height int
return Rect
        protected static Rect GetControlRect(int height, params GUILayoutOption[] layoutOptions)
        {
            return GUILayoutUtility.GetRect(0f, (float) height, s_ControlRectStyle, layoutOptions);
        }

Usage Example

示例#1
0
        public static bool GUIToggle(GUIContent guiContent, SerializedProperty boolProp, params GUILayoutOption[] layoutOptions)
        {
            Rect rect = ModuleUI.GetControlRect(13, layoutOptions);

            rect = ModuleUI.PrefixLabel(rect, guiContent);
            return(ModuleUI.Toggle(rect, boolProp));
        }
All Usage Examples Of UnityEditor.ModuleUI::GetControlRect