ActionSelectionChangedEventArgs
Namespace: FireSoftworks.Interaction
Assembly: FireSoftworks.Interaction
Type: Class
Event arguments for when the selected action changes on an interactor. Contains information about the target, the new selected index, and the action.
public class ActionSelectionChangedEventArgsConstructors
ActionSelectionChangedEventArgs(IInteractable, int, IInteractableAction)
Initializes a new instance of the ActionSelectionChangedEventArgs class.
public ActionSelectionChangedEventArgs(IInteractable target, int index, IInteractableAction action)Parameters
| Name | Type | Description |
|---|---|---|
target | FireSoftworks.Interaction.IInteractable | The interactable target where the selection changed. |
index | System.Int32 | The index of the selected action. |
action | FireSoftworks.Interaction.IInteractableAction | The selected action, or null if none. |
Fields
Action
The newly selected action, or null if no action is selected.
public readonly IInteractableAction ActionIndex
The index of the newly selected action in the actions list. -1 if no action is selected.
public readonly int IndexTarget
The interactable target where the action selection changed.
public readonly IInteractable Target