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.

Fields

UnityEvent WhenRotationStarted[Get]
UnityEvent WhenRotationEnded[Get]
UnityEvent WhenRotatedOpen[Get]
UnityEvent WhenRotatedClosed[Get]

Properties

Transform TrackedTransform[Get]

Protected Fields

bool _started[Get]

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void Update ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon