Methods
(async, static) load(path) → {Promise.<Scene>}
Loads a scene from a JSON file.
Parameters:
| Name | Type | Description |
|---|---|---|
path | string | The path to the .scn file. |
- Source
Returns:
The loaded scene.
- Type:
- Promise.<Scene>
(static) parse(data) → {Promise.<Scene>}
Parses a scene JSON object and creates the Scene.
Parameters:
| Name | Type | Description |
|---|---|---|
data | object | The scene JSON data. |
- Source
Returns:
The instantiated scene.
- Type:
- Promise.<Scene>
(static) validate()
Validate a scene payload without constructing or registering a Scene.
- Source