ReferenceScripting APIMotecomponent
Mote.component
methodOne of its components, by name.
| Name | component |
|---|---|
| Kind | method of Mote |
| Called as | scene.pickItem(…).component(…) |
| Since | 0.3 |
Syntax
component<C extends Component>(name: string): C | nullParameters
| Name | Type | Description |
|---|---|---|
name | string | The component's name |
Returns
C | null: the component, or null.
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.