Table of Contents

Class AudioSourceMotionExtensions

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

proxy TweenMotionProxy<AudioSource>
value float

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

proxy TweenMotionProxy<AudioSource>
to float

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

proxy TweenMotionProxy<AudioSource>
from float
to float

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

proxy TweenMotionProxy<AudioSource>
value float

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

proxy TweenMotionProxy<AudioSource>
to float

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

proxy TweenMotionProxy<AudioSource>
from float
to float

Returns

TweenMotionProxy<AudioSource>

Remarks

from and to values will be clamped between 0 and 1.