Version: 2017.3
public static int DelayedIntField (int value, params GUILayoutOption[] options);
public static int DelayedIntField (int value, GUIStyle style, params GUILayoutOption[] options);
public static int DelayedIntField (string label, int value, params GUILayoutOption[] options);
public static int DelayedIntField (string label, int value, GUIStyle style, params GUILayoutOption[] options);
public static int DelayedIntField (GUIContent label, int value, params GUILayoutOption[] options);
public static int DelayedIntField (GUIContent label, int value, GUIStyle style, params GUILayoutOption[] options);

パラメーター

label Int Field の前に表示するオプションのラベル
value 編集する値
style オプションの GUIStyle
options 指定してレイアウトオプションを渡すときのレイアウトオプションのリスト。ここで設定したものは style によって設定された値を上書きします。
See Also: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

戻り値

int ユーザーに入力される値。ユーザーがエンターを押すか Int Field からフォーカスを移動するまで新しい値を返しません。

説明

整数を入力するための Delayed Text Field を作成します。

EditorGUILayout.IntField に似ていますが、ユーザーがエンターを押すか、テキストフィールドからフォーカスを移動するまで新しい値を返しません。


public static void DelayedIntField (SerializedProperty property, params GUILayoutOption[] options);
public static void DelayedIntField (SerializedProperty property, GUIContent label, params GUILayoutOption[] options);

パラメーター

property Int のプロパティーを編集します。
label Int Field の前に表示するオプションのラベル。ラベルを非表示にする GUIContent.none を渡します。
options 指定してレイアウトオプションを渡すときのレイアウトオプションのリスト。ここで設定したものは style によって設定された値を上書きします。
See Also: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

説明

整数を入力するための Delayed Text Field を作成します。

EditorGUILayout.IntField に似ていますが、ユーザーがエンターを押すか、テキストフィールドからフォーカスを移動するまで新しい値を返しません。