Motion
Get Motion

ReferenceScripting APINestedSceneComponentconstructor

NestedSceneComponent.constructor

constructor

Binds a layer to a mote by hand. A mote's components are made with it, from the layers it's given in Studio, so you rarely need this.

Nameconstructor
Kindconstructor of NestedSceneComponent
Called asnew NestedSceneComponent(…)
Since0.3

Syntax

new NestedSceneComponent(    name?: string,    layer?: string): NestedSceneComponent

Parameters

NameTypeDescription
namestringOptional. Its name on the mote
layerstringOptional. The layer's name or id