API reference
API reference
Select your platform
No SDKs available
No versions available

RotationAudioEvents Class

Extends MonoBehaviour
Raises events when an object is rotated relative to a provided transform.
Rotated events will be raised when the rotation exceeds a provided angle threshold, in degrees. Events are raised only once per directional sweep, so if an event was fired while angle was increasing, the next must fire while angle decreases.

Protected Fields

_started : bool
Signature
bool Oculus.Interaction.Samples.RotationAudioEvents._started

Properties

WhenRotatedClosed : UnityEvent
[Get]
Signature
UnityEvent Oculus.Interaction.Samples.RotationAudioEvents.WhenRotatedClosed
WhenRotatedOpen : UnityEvent
[Get]
Signature
UnityEvent Oculus.Interaction.Samples.RotationAudioEvents.WhenRotatedOpen
WhenRotationEnded : UnityEvent
[Get]
Signature
UnityEvent Oculus.Interaction.Samples.RotationAudioEvents.WhenRotationEnded
WhenRotationStarted : UnityEvent
[Get]
Signature
UnityEvent Oculus.Interaction.Samples.RotationAudioEvents.WhenRotationStarted

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.Samples.RotationAudioEvents.Awake()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.Samples.RotationAudioEvents.Start()
Returns
void
Update ()
Signature
virtual void Oculus.Interaction.Samples.RotationAudioEvents.Update()
Returns
void