Introduction
This component allows you to respond to an action on a single Interactable
#
FieldsName | Description |
---|---|
Actions | List of UI elements used to respond to actions |
Id | Id used to find object when not referenced directly |
Ui Text | Destination of the text |
Format | Format to use when setting text. {0} is replaced with the supplied interactable object text |
Require Hold | Require button/key to be held to interact |
Hold Time | Seconds to require hold before interaction |
Hold Progressbar | Progressbar for hold time |
On Held Time Changed | Event raised when held time changes |
#
PropertiesName | Description |
---|---|
callbacks | Gets callbacks associated with the action |
overrideInteraction | Get if this UI is overriding the default interaction input |
parameters | Gets parameters associated with the action |
holding | Get/Set if the interaction button is being held |
source | Get/Set the interactor displaying this UI |
target | Get/Set the target interactable object |
timeHeld | Get/Set the amount of time the interaction button has been held |
#
MethodsName | Description |
---|---|
Initialize | Initialize the object |
SetText | Set the text for the UI |
UseAction | Perform interaction using an Interactor UI Action |
InteractWithTarget | Interact with the target |