SetRoomDimension()
Set Room Dimension
Change a scene's runtime dimension setting between 3D, 2D and 2.5D, with an option to retain the 3D layer.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Room (empty = current) sceneId | Choose a scene ID. May be blank. | Blank |
| Room Dimension dimension | Choose: 3d, 2d, 2.5d. | "3d" |
| Keep 3D Layer keep3DLayer | Retain the 3D layer when using the hybrid room setup. | true |
Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.
await SetRoomDimension({"sceneId": "lab", "dimension": "3d", "keep3DLayer": true})In use. Use it only after the target scene has the assets and navigation appropriate to that mode. Switching a setting does not automatically build a painted backdrop, reposition every entity or convert navigation geometry.
