ReferenceScripting APIMotionSound
MotionSound
interfaceA sound of the script's own (scene.loadSound): played as many times as asked, each a voice.
| Name | MotionSound |
|---|---|
| Kind | interface |
| Script reaches it as | MotionScene.loadSound() |
| Since | 0.3 |
Syntax
interface MotionSound { … }Properties
| Name | Type | Description |
|---|---|---|
fileproperty | readonly string | Its file, in the scene's folder. |
busproperty | readonly string | The bus it plays through, as Studio's Mixer shows them: "music", "effects" (unless told), "ambience" or one of the scene's own. |
Methods
| Signature | Description |
|---|---|
play(options?: MotionPlayOptions): MotionVoicemethod | Plays it: a voice of its own each time. |
See also
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.