public static BeginToggleGroup ( |
||
label | Label to show above the toggled controls. | |
toggle | bool | Enabled state of the toggle group. |
리턴 | bool |
public static bool BeginToggleGroup(GUIContent label, bool toggle)
{
toggle = ToggleLeft(label, toggle, EditorStyles.boldLabel, new GUILayoutOption[0]);
EditorGUI.BeginDisabled(!toggle);
GUILayout.BeginVertical(new GUILayoutOption[0]);
return toggle;
}
EditorGUILayout::BeginToggleGroup ( string label, bool toggle ) : bool |