Scene
- Last UpdatedFeb 19, 2025
- 2 minute read
The Scene node is a context with reloading capabilities.
Platform support
This node is fully supported on XR-Windows platform.
It is partially supported on XR-Portable Windows, XR-Portable iOS, XR-Portable Android, and XR-P WASM platforms.
These fields are not supported on NX platforms: layer2d, layer3d, viewport, reload.
|
XR-WIN |
XR-P-WIN |
XR-P-IOS |
XR-P-AND |
XR-P-WASM |
|---|---|---|---|---|
|
Full support |
Partial support |
Partial support |
Partial support |
Partial support |
|
|
|
|
|
|
Code example
This is a code example for the Scene node.
<Scene name="scene" />
Scene fields
These are the fields for Scene node. Only the node-specific fields are indicated, not fields obtained by inheritance.
Field inheritance: NodeBase > Context > Scene
|
Fields |
Type |
Use |
Default value |
Description |
|---|---|---|---|---|
|
layer2d |
sstring |
Optional |
Empty |
Allows you to specify a custom layer2d for the scene. This setting cannot be applied when a scene has been already loaded. |
|
layer3d |
sstring |
Optional |
Empty |
Allows you to specify a custom layer3d for the scene. This setting cannot be applied when a scene has been already loaded. |
|
loadScene |
sstring |
Optional |
Not set |
The path of the file to be load, relative to gamedata/logic. |
|
reload |
sevent |
Optional |
Not set |
Reloads the scene content, including both models and logic. |
|
unload |
sevent |
Optional |
Empty |
Unloads the scene. |
|
viewport |
sstring |
Optional |
Empty |
Allows you to specify a custom viewport for the scene. This setting cannot be applied when a scene has been already loaded. |