Class AudioSourceMotionExtensions
- Namespace
- FriedSynapse.FlowEnt
public static class AudioSourceMotionExtensions
- Inheritance
-
AudioSourceMotionExtensions
- Inherited Members
Methods
Pitch(TweenMotionProxy<AudioSource>, float)
Applies a PitchMotion to the tween.
public static TweenMotionProxy<AudioSource> Pitch(this TweenMotionProxy<AudioSource> proxy, float value)
Parameters
proxyTweenMotionProxy<AudioSource>valuefloat
Returns
- TweenMotionProxy<AudioSource>
PitchTo(TweenMotionProxy<AudioSource>, float)
Applies a PitchMotion to the tween.
public static TweenMotionProxy<AudioSource> PitchTo(this TweenMotionProxy<AudioSource> proxy, float to)
Parameters
proxyTweenMotionProxy<AudioSource>tofloat
Returns
- TweenMotionProxy<AudioSource>
PitchTo(TweenMotionProxy<AudioSource>, float, float)
Applies a PitchMotion to the tween.
public static TweenMotionProxy<AudioSource> PitchTo(this TweenMotionProxy<AudioSource> proxy, float from, float to)
Parameters
proxyTweenMotionProxy<AudioSource>fromfloattofloat
Returns
- TweenMotionProxy<AudioSource>
Volume(TweenMotionProxy<AudioSource>, float)
Applies a VolumeMotion to the tween.
public static TweenMotionProxy<AudioSource> Volume(this TweenMotionProxy<AudioSource> proxy, float value)
Parameters
proxyTweenMotionProxy<AudioSource>valuefloat
Returns
- TweenMotionProxy<AudioSource>
Remarks
Calculated destination value (current value + value) will be clamped between 0 and 1.
VolumeTo(TweenMotionProxy<AudioSource>, float)
Applies a VolumeMotion to the tween.
public static TweenMotionProxy<AudioSource> VolumeTo(this TweenMotionProxy<AudioSource> proxy, float to)
Parameters
proxyTweenMotionProxy<AudioSource>tofloat
Returns
- TweenMotionProxy<AudioSource>
Remarks
to value will be clamped between 0 and 1.
VolumeTo(TweenMotionProxy<AudioSource>, float, float)
Applies a VolumeMotion to the tween.
public static TweenMotionProxy<AudioSource> VolumeTo(this TweenMotionProxy<AudioSource> proxy, float from, float to)
Parameters
proxyTweenMotionProxy<AudioSource>fromfloattofloat
Returns
- TweenMotionProxy<AudioSource>
Remarks
from and to values will be clamped between 0 and 1.