Skip to main content

Introduction

This component allows you to respond to an action on a single Interactable

"Multi Action Interactor UI"

Fields#

NameDescription
ActionsList of UI elements used to respond to actions
IdId used to find object when not referenced directly
Ui TextDestination of the text
FormatFormat to use when setting text. {0} is replaced with the supplied interactable object text
Require HoldRequire button/key to be held to interact
Hold TimeSeconds to require hold before interaction
Hold ProgressbarProgressbar for hold time
On Held Time ChangedEvent raised when held time changes

Properties#

NameDescription
callbacksGets callbacks associated with the action
overrideInteractionGet if this UI is overriding the default interaction input
parametersGets parameters associated with the action
holdingGet/Set if the interaction button is being held
sourceGet/Set the interactor displaying this UI
targetGet/Set the target interactable object
timeHeldGet/Set the amount of time the interaction button has been held

Methods#

NameDescription
InitializeInitialize the object
SetTextSet the text for the UI
UseActionPerform interaction using an Interactor UI Action
InteractWithTargetInteract with the target