Motion
Get Motion

ReferenceScripting APIMotionVoicecrossfadeTo

MotionVoice.crossfadeTo

method

Fades this voice out as another sound fades in, over seconds.

NamecrossfadeTo
Kindmethod of MotionVoice
Called asvoice.crossfadeTo(…)
Since0.3

Syntax

crossfadeTo(    other: MotionSound,    seconds: number): MotionVoice

Parameters

NameTypeDescription
otherMotionSoundA sound from scene.loadSound
secondsnumberHow long the crossing takes

Returns

MotionVoice: the new voice.

See also

MotionSound