Version: 5.6

EditorGUILayout.DelayedDoubleField

切换到手册
public static double DelayedDoubleField (double value, params GUILayoutOption[] options);
public static double DelayedDoubleField (double value, GUIStyle style, params GUILayoutOption[] options);
public static double DelayedDoubleField (string label, double value, params GUILayoutOption[] options);
public static double DelayedDoubleField (string label, double value, GUIStyle style, params GUILayoutOption[] options);
public static double DelayedDoubleField (GUIContent label, double value, params GUILayoutOption[] options);
public static double DelayedDoubleField (GUIContent label, double value, GUIStyle style, params GUILayoutOption[] options);

参数

label (可选)显示在双精度浮点数字段前的标签。
value 要编辑的值。
style 可选 GUIStyle
options An optional list of layout options that specify extra layouting properties. Any values passed in here will override settings defined by the style.
See Also: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

返回

double 用户输入的值。请注意,在用户按 Enter 键或将焦点从 double 字段移开之前,返回值不会更改。

描述

创建一个用于输入双精度浮点数的延迟文本字段。

EditorGUILayout.DoubleField 类似,但在用户按 Enter 键或将焦点从 double 字段移开之前,不会返回新值。


参数

property 要编辑的双精度浮点数属性。
label (可选)显示在双精度浮点数字段前的标签。传递 GUIContent.none 以隐藏标签。
options An optional list of layout options that specify extra layouting properties. Any values passed in here will override settings defined by the style.
See Also: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

描述

创建一个用于输入双精度浮点数的延迟文本字段。

EditorGUILayout.DoubleField 类似,但在用户按 Enter 键或将焦点从 double 字段移开之前,不会返回新值。