ReferenceScripting APIMeshComponentplay
MeshComponent.play
methodPlays a clip from its start, faded into from the one playing.
| Name | play |
|---|---|
| Kind | method of MeshComponent |
| Called as | meshComponent.play(…) |
| As a node | Play Clip (logic graph) |
| Since | 0.3 |
Syntax
play( clip?: string, options?: { loop?: boolean | "pingpong" | "loop" | "once"; speed?: number; fade?: number }): voidParameters
| Name | Type | Description |
|---|---|---|
clip | string | Optional. The clip's name |
options | { loop?: boolean | "pingpong" | "loop" | "once"; speed?: number; fade?: number } | Optional. Loop ("loop", "pingpong", "once"), speed, fade (seconds) |
Returns
Nothing.
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.