OnEventRaised
: Action< InteractionEvent > |
Event invoked when a new InteractionEvent is raised via the Raise method.
Systems interested in global interaction events should subscribe to this.
This event is marked as NonSerializedAttribute and will be reset (cleared of subscribers) after Unity domain reloads (e.g., script compilation, entering/exiting play mode). Subscribers should ensure they re-subscribe, typically in their OnEnable method.
Signature
Action<InteractionEvent> Oculus.Interaction.Feedback.InteractionEventChannel.OnEventRaised |
Raise
(
interactionEvent
)
|
Raises an InteractionEvent, invoking the OnEventRaised delegate and notifying all current subscribers.
Signature
void Oculus.Interaction.Feedback.InteractionEventChannel.Raise(in InteractionEvent interactionEvent) Parameters interactionEvent: in InteractionEvent
The InteractionEvent data to broadcast. This is passed by ref to potentially avoid copying a large struct, though InteractionEvent is small.
Returns void |