Motion
Get Motion

ReferenceScripting APIMeshComponentplay

MeshComponent.play

method

Plays a clip from its start, faded into from the one playing.

Nameplay
Kindmethod of MeshComponent
Called asmeshComponent.play(…)
As a nodePlay Clip (logic graph)
Since0.3

Syntax

play(    clip?: string,    options?: { loop?: boolean | "pingpong" | "loop" | "once"; speed?: number; fade?: number }): void

Parameters

NameTypeDescription
clipstringOptional. The clip's name
options{ loop?: boolean | "pingpong" | "loop" | "once"; speed?: number; fade?: number }Optional. Loop ("loop", "pingpong", "once"), speed, fade (seconds)

Returns

Nothing.