Set2DLayerVisible()
Show / Hide 2D Layer
Show or hide a named 2D layer.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Room (empty = current) sceneId | Choose a scene ID. May be blank. | Blank |
| 2D Layer ID layerId | Text. | Blank |
| Visible visible | Explicit visible/hidden state. | true |
Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.
await Set2DLayerVisible({"sceneId": "lab", "layerId": "", "visible": true})In use. Hide a foreground curtain layer after it opens. Select the layer ID used by the room, not the ID of an image asset imported into the project.
Set2DEntityDepth()#
Set 2D Entity Depth
Change an entity's sorting depth in the 2D/hybrid scene.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Room (empty = current) sceneId | Choose a scene ID. May be blank. | Blank |
| 2D Character / Object entityId | Choose an entity in the selected scene. | Blank |
| Drawing Depth depth | Whole number. | 100 |
Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.
await Set2DEntityDepth({"sceneId": "lab", "entityId": "archive_door", "depth": 100})In use. Adjust a foreground prop's depth so it appears in front of the intended sprites. Depth is drawing order; it is not a height coordinate or a collision box dimension.
