API reference

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 _started

Properties

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

Protected Methods

Awake ()
Signature
virtual void Awake()
Returns
void
Start ()
Signature
virtual void Start()
Returns
void
Update ()
Signature
virtual void Update()
Returns
void