AddAssetToScene()
Add Asset to Scene
Create a runtime scene entity using an imported asset.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Asset assetId | Choose an imported asset. | Blank |
| New ID id | Text. | Blank |
| Name name | Text. | Blank |
| XYZ position | Destination/placement coordinates as [X, Y, Z]. | [0.0, 0.0, 0.0] |
| Enabled enabled | Explicit on/off state for the feature or response. | true |
| 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 AddAssetToScene({"assetId": "your_asset", "id": "", "name": "powered"})In use. Spawn a lantern model at [1,0,-2] with a unique ID. Import and verify the asset first. Repeating the spawn is not the same as showing one existing lantern.
