DelayedTextField
Make a delayed text field.
Read time 8 minutesLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
DelayedTextField(string, GUILayoutOption[])
Make a delayed text field.
public static string DelayedTextField(string text, params GUILayoutOption[] options)
Parameters
The text to edit.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| string | The value entered by the user. Note that the return value will not change until the user has pressed enter or focus is moved away from the text field. |
Remarks
Similar to EditorGUILayout.TextField but will not return the new value until the user has pressed enter or focus is moved away from the text field.
DelayedTextField(string, GUIStyle, GUILayoutOption[])
Make a delayed text field.
public static string DelayedTextField(string text, GUIStyle style, params GUILayoutOption[] options)
Parameters
The text to edit.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| string | The value entered by the user. Note that the return value will not change until the user has pressed enter or focus is moved away from the text field. |
Remarks
Similar to EditorGUILayout.TextField but will not return the new value until the user has pressed enter or focus is moved away from the text field.
DelayedTextField(string, string, GUILayoutOption[])
Make a delayed text field.
public static string DelayedTextField(string label, string text, params GUILayoutOption[] options)
Parameters
Optional label to display in front of the int field.
The text to edit.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| string | The value entered by the user. Note that the return value will not change until the user has pressed enter or focus is moved away from the text field. |
Remarks
Similar to EditorGUILayout.TextField but will not return the new value until the user has pressed enter or focus is moved away from the text field.
DelayedTextField(string, string, GUIStyle, GUILayoutOption[])
Make a delayed text field.
public static string DelayedTextField(string label, string text, GUIStyle style, params GUILayoutOption[] options)
Parameters
Optional label to display in front of the int field.
The text to edit.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| string | The value entered by the user. Note that the return value will not change until the user has pressed enter or focus is moved away from the text field. |
Remarks
Similar to EditorGUILayout.TextField but will not return the new value until the user has pressed enter or focus is moved away from the text field.
DelayedTextField(GUIContent, string, GUILayoutOption[])
Make a delayed text field.
public static string DelayedTextField(GUIContent label, string text, params GUILayoutOption[] options)
Parameters
Optional label to display in front of the int field.
The text to edit.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| string | The value entered by the user. Note that the return value will not change until the user has pressed enter or focus is moved away from the text field. |
Remarks
Similar to EditorGUILayout.TextField but will not return the new value until the user has pressed enter or focus is moved away from the text field.
DelayedTextField(GUIContent, string, GUIStyle, GUILayoutOption[])
Make a delayed text field.
public static string DelayedTextField(GUIContent label, string text, GUIStyle style, params GUILayoutOption[] options)
Parameters
Optional label to display in front of the int field.
The text to edit.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| string | The value entered by the user. Note that the return value will not change until the user has pressed enter or focus is moved away from the text field. |
Remarks
Similar to EditorGUILayout.TextField but will not return the new value until the user has pressed enter or focus is moved away from the text field.
DelayedTextField(SerializedProperty, GUILayoutOption[])
Make a delayed text field.
public static void DelayedTextField(SerializedProperty property, params GUILayoutOption[] options)
Parameters
The text property to edit.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Remarks
Similar to EditorGUILayout.TextField but will not return the new value until the user has pressed enter or focus is moved away from the text field.
DelayedTextField(SerializedProperty, GUIContent, GUILayoutOption[])
Make a delayed text field.
public static void DelayedTextField(SerializedProperty property, GUIContent label, params GUILayoutOption[] options)
Parameters
The text property to edit.
Optional label to display in front of the int field. Pass GUIContent.none to hide label.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Remarks
Similar to EditorGUILayout.TextField but will not return the new value until the user has pressed enter or focus is moved away from the text field.