Skip to content

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 ActionSelectionChangedEventArgs

Constructors

ActionSelectionChangedEventArgs(IInteractable, int, IInteractableAction)

Initializes a new instance of the ActionSelectionChangedEventArgs class.

public ActionSelectionChangedEventArgs(IInteractable target, int index, IInteractableAction action)

Parameters

NameTypeDescription
targetFireSoftworks.Interaction.IInteractableThe interactable target where the selection changed.
indexSystem.Int32The index of the selected action.
actionFireSoftworks.Interaction.IInteractableActionThe selected action, or null if none.

Fields

Action

The newly selected action, or null if no action is selected.

public readonly IInteractableAction Action

Index

The index of the newly selected action in the actions list. -1 if no action is selected.

public readonly int Index

Target

The interactable target where the action selection changed.

public readonly IInteractable Target