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);
}
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)); }