Class InteractableOption
The interactable options that the can be selected by the interactor.
[Serializable]
public class InteractableOption
Inheritance
Fields
AutoComplete
Whether the interaction should automatically complete without player input after helding input for the specified duration.
[Tooltip("If true, the interaction automatically completes without player input after helding input for the specified duration.")]
public bool AutoComplete
Field Value
bool
CompletionPolicy
What happens to the options once this one completes.
[Tooltip("What happens to the options once this one completes.")]
public OptionCompletionPolicy CompletionPolicy
Field Value
Duration
The duration of the interaction (in seconds). Set to 0 for instant interactions.
[Tooltip("The duration of the interaction in seconds. Set to 0 for instant interactions.")]
[Min(0)]
public float Duration
Field Value
float
InteractEventCancel
Event triggered when the interaction is canceled.
[Tooltip("Event triggered when the interaction is canceled.")]
public UnityEvent InteractEventCancel
Field Value
InteractEventComplete
Event triggered when the interaction completes successfully.
[Tooltip("Event triggered when the interaction completes successfully.")]
public UnityEvent InteractEventComplete
Field Value
InteractEventStart
Event triggered when the interaction starts.
[Tooltip("Event triggered when the interaction starts.")]
public UnityEvent InteractEventStart