Version: 2019.1
public static bool ToggleLeft (Rect position, string label, bool value, GUIStyle labelStyle= EditorStyles.label);
public static bool ToggleLeft (Rect position, GUIContent label, bool value, GUIStyle labelStyle= EditorStyles.label);

パラメーター

position表示位置
labelトグルの隣に表示するラベル
value編集する値
labelStyleラベルで使用する GUIStyle オプション

戻り値

bool ユーザーによって設定された値

説明

Makes a toggle field where the toggle is to the left and the label immediately to the right of it.

EditorGUI.ToggleLeftGUI.Toggle と同じですが EditorGUI.showMixedValueプロパティーを尊重し、キーボードフォーカスを他のエディターコントロールと一貫するように処理します。