You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
2.4 KiB
57 lines
2.4 KiB
8 years ago
|
# UI commands {#ui_commands}
|
||
|
|
||
8 years ago
|
## Fade UI
|
||
|
Fades a UI object
|
||
|
|
||
|
Property | Type | Description
|
||
|
--- | --- | ---
|
||
|
Target Objects | System.Collections.Generic.List`1[UnityEngine.GameObject] | List of objects to be affected by the tween
|
||
|
Tween Type | LeanTweenType | Type of tween easing to apply
|
||
8 years ago
|
Wait Until Finished | Fungus.Variables.BooleanData | Wait until this command completes before continuing execution
|
||
|
Duration | Fungus.Variables.FloatData | Time for the tween to complete
|
||
8 years ago
|
|
||
|
## Get Text
|
||
|
Gets the text property from a UI Text object and stores it in a string variable.
|
||
|
|
||
|
Property | Type | Description
|
||
|
--- | --- | ---
|
||
|
Target Text Object | UnityEngine.GameObject | Text object to get text value from
|
||
8 years ago
|
String Variable | Fungus.Variables.StringVariable | String variable to store the text value in
|
||
8 years ago
|
|
||
|
## Set Interactable
|
||
|
Set the interactable sate of selectable objects.
|
||
|
|
||
|
Property | Type | Description
|
||
|
--- | --- | ---
|
||
|
Target Objects | System.Collections.Generic.List`1[UnityEngine.GameObject] | List of objects to be affected by the command
|
||
8 years ago
|
Interactable State | Fungus.Variables.BooleanData | Controls if the selectable UI object be interactable or not
|
||
8 years ago
|
|
||
|
## Set Slider Value
|
||
|
Sets the value property of a slider object
|
||
|
|
||
|
Property | Type | Description
|
||
|
--- | --- | ---
|
||
|
Slider | UnityEngine.UI.Slider | Target slider object to set the value on
|
||
8 years ago
|
Value | Fungus.Variables.FloatData | Float value to set the slider value to.
|
||
8 years ago
|
|
||
|
## Set Text
|
||
|
Sets the text property on a UI Text object and/or an Input Field object.
|
||
|
|
||
|
Property | Type | Description
|
||
|
--- | --- | ---
|
||
|
Target Text Object | UnityEngine.GameObject | Text object to set text on. Can be a UI Text, Text Field or Text Mesh object.
|
||
8 years ago
|
Text | Fungus.Variables.StringDataMulti | String value to assign to the text object
|
||
8 years ago
|
Description | System.String | Notes about this story text for other authors, localization, etc.
|
||
|
|
||
|
## Write
|
||
|
Writes content to a UI Text or Text Mesh object.
|
||
|
|
||
|
Property | Type | Description
|
||
|
--- | --- | ---
|
||
|
Text Object | UnityEngine.GameObject | Text object to set text on. Text, Input Field and Text Mesh objects are supported.
|
||
8 years ago
|
Text | Fungus.Variables.StringDataMulti | String value to assign to the text object
|
||
8 years ago
|
Description | System.String | Notes about this story text for other authors, localization, etc.
|
||
|
Clear Text | System.Boolean | Clear existing text before writing new text
|
||
|
Wait Until Finished | System.Boolean | Wait until this command finishes before executing the next command
|
||
|
|