UnityEditor.ModuleUI.GetControlRect C# (CSharp) 메소드

GetControlRect() 보호된 정적인 메소드

protected static GetControlRect ( int height ) : Rect
height int
리턴 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