Motion
Get Motion

ReferenceScripting APIMotecomponent

Mote.component

method

One of its components, by name.

Namecomponent
Kindmethod of Mote
Called asscene.pickItem(…).component(…)
Since0.3

Syntax

component<C extends Component>(name: string): C | null

Parameters

NameTypeDescription
namestringThe component's name

Returns

C | null: the component, or null.