@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / createEntityTypeComponent
Function: createEntityTypeComponent()
ts
function createEntityTypeComponent(
world,
entityId, ...
args): EntityType;Defined in: factories/components/EntityTypeFactory.ts:4
Parameters
| Parameter | Type |
|---|---|
world | World |
entityId | number |
...args | [ | "model" | "image" | "capsule" | "cube" | "cylinder" | "plane" | "sphere" | "empty" | "imageTarget" | "sprite" | "audio" | "camera" | "video" | "ambientLight" | "directionalLight" | "pointLight" | "spotLight" | "areaLight" | "instancedMesh" | "instanceSlot" | "editorUtility"] |

