ReferenceScripting APIWanderComponentconstructor
WanderComponent.constructor
constructorBinds 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.
| Name | constructor |
|---|---|
| Kind | constructor of WanderComponent |
| Called as | new WanderComponent(…) |
| Since | 0.3 |
Syntax
new WanderComponent( name?: string, layer?: string): WanderComponentParameters
| Name | Type | Description |
|---|---|---|
name | string | Optional. Its name on the mote |
layer | string | Optional. The layer's name or id |
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.