@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / components / ModelComponent
Class: ModelComponent
Defined in: components/Model.ts:13
References a GLTF/GLB asset loaded from path. The model loading system resolves the asset asynchronously and populates ModelComponent.object once available; loading is deferred-tolerant so the entity exists before the model finishes loading.
Extends
Constructors
Constructor
ts
new ModelComponent(path): ModelComponent;Defined in: components/Model.ts:19
Parameters
| Parameter | Type |
|---|---|
path | string |
Returns
ModelComponent
Overrides
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
path | string | Source URL or localasset:// path of the GLTF/GLB asset. | components/Model.ts:15 |
object | Object3D<Object3DEventMap> | null | Loaded model object, populated asynchronously by the model loader. null until loaded. | components/Model.ts:17 |

