@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / components / EntityType
Class: EntityType
Defined in: components/EntityType.ts:12
Tags an entity with the kind it was created from (cube, sphere, model, directionalLight, etc.). Factories use this to drive kind-specific behavior; the editor inspector uses it to select component editors.
Extends
Constructors
Constructor
ts
new EntityType(value): EntityType;Defined in: components/EntityType.ts:16
Parameters
| Parameter | Type |
|---|---|
value | | "model" | "image" | "capsule" | "cube" | "cylinder" | "plane" | "sphere" | "empty" | "imageTarget" | "sprite" | "audio" | "camera" | "video" | "ambientLight" | "directionalLight" | "pointLight" | "spotLight" | "areaLight" | "instancedMesh" | "instanceSlot" | "editorUtility" |
Returns
EntityType
Overrides
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
value | | "model" | "image" | "capsule" | "cube" | "cylinder" | "plane" | "sphere" | "empty" | "imageTarget" | "sprite" | "audio" | "camera" | "video" | "ambientLight" | "directionalLight" | "pointLight" | "spotLight" | "areaLight" | "instancedMesh" | "instanceSlot" | "editorUtility" | Kind tag identifying which factory created this entity (e.g. cube, directionalLight, model). | components/EntityType.ts:14 |

