LayerMixin.moveAfter
Moves this layer immediately after the given sibling in render order.
LayerMixin.moveAfter() method
Moves this layer immediately after (visually below) the given sibling in render order.
Signature:
moveAfter(sibling: Layer): void;Parameters
Parameter | Type | Description |
|---|---|---|
sibling | The layer to move this layer after. Must be in the same scene. |
Returns: void
Remarks
Throws if sibling belongs to a different scene.
Example
const [first, second] = creator.activeScene.layers;
first.moveAfter(second); // first now renders below secondLast updated: August 6, 2026 at 1:25 AMEdit this page