Skip to content

@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

ParameterType
worldWorld
entityIdnumber
...args[ | "model" | "image" | "capsule" | "cube" | "cylinder" | "plane" | "sphere" | "empty" | "imageTarget" | "sprite" | "audio" | "camera" | "video" | "ambientLight" | "directionalLight" | "pointLight" | "spotLight" | "areaLight" | "instancedMesh" | "instanceSlot" | "editorUtility"]

Returns

EntityType