InteractionEvent
(
type
, interactorView
, source
, pointerId
)
|
Initializes a new instance of the InteractionEvent struct.
Signature
Oculus.Interaction.Feedback.InteractionEvent.InteractionEvent(InteractionType type, IInteractorView interactorView, GameObject source, int pointerId=-1) Parameters source: GameObject
The source GameObject of the interaction. Can be null.
pointerId: int
The pointer ID, typically for UI events. Defaults to -1.
|
_pointerId
: int |
An identifier for UI pointer interactions, such as UnityEngine.EventSystems.PointerEventData.pointerId.
Defaults to -1 if not applicable or unknown. For non-UI interactions tied to an InteractorView, the IInteractorView.Identifier should be preferred if a unique ID is needed.
Signature
int Oculus.Interaction.Feedback.InteractionEvent._pointerId |
_source
: GameObject |
The GameObject that is the primary target or source of the interaction (e.g., the interactable object that was hovered or selected).
This can be null if the interaction source is not a GameObject or is not applicable.
Signature
GameObject Oculus.Interaction.Feedback.InteractionEvent._source |
_type
: InteractionType |
The specific type of interaction that occurred (e.g., HoverStart, SelectEnd, UISelectStart).
Signature
InteractionType Oculus.Interaction.Feedback.InteractionEvent._type |
InteractorView
: IInteractorView |
The Oculus.Interaction.IInteractorView component that initiated or is involved in the interaction.
This can be null if the event is not directly tied to a specific IInteractorView instance (e.g., some UI events might only have a _pointerId).
Signature
IInteractorView Oculus.Interaction.Feedback.InteractionEvent.InteractorView |