ReferenceScripting APIMotionScenelayerAt
MotionScene.layerAt
methodThe top layer drawn at a point.
| Name | layerAt |
|---|---|
| Kind | method of MotionScene |
| Called as | scene.layerAt(…) |
| As a node | Layer At Point (logic graph) |
| Since | 0.4 |
Syntax
layerAt( x: number, y: number): MotionLayerInfo | nullParameters
| Name | Type | Description |
|---|---|---|
x | number | Across the scene, 0 to 1 |
y | number | Down the scene, 0 to 1 |
Returns
MotionLayerInfo | null: the layer, or null.
Remarks
null at first: the layers' places are known a moment after it's first asked.
See also
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.