public class ModelAsset
CPU asset, independently editable catalog and scene templates. Loading never uploads GPU resources or silently merges meshes. Mesh/material objects are immutable and shared by scene instances. Catalogs are mutable; update them consistently with scene templates before exporting. Example: asset = ModelLoader().load(FilePath("robot.glb")); scene.root.add(asset.instantiate())
| Modifier and Type | Member | Description |
|---|---|---|
| public property | defaultScenedefaultScene as Int = -1 |
Declared default scene, or -1. |
| public readonly property | materials | Material catalog; no copy on access. |
| public readonly property | meshes | Mesh catalog; no copy on access. |
| public readonly property | scenes | Scene templates; each root is detached. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | instantiate | Clones the selected scene hierarchy, sharing immutable buffers, O(nodes). |