@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / createInstancedMeshComponent
Function: createInstancedMeshComponent()
ts
function createInstancedMeshComponent(
world,
entityId,
meshKind,
meshParameters?,
options?): InstancedMeshComponent;Defined in: factories/components/InstancedMeshComponentFactory.ts:6
Parameters
| Parameter | Type |
|---|---|
world | World |
entityId | number |
meshKind | InstancedMeshKind |
meshParameters? | Partial<MeshGeometryParameters> |
options? | { castShadow?: boolean; receiveShadow?: boolean; instanceEntityIds?: number[]; modelPath?: string; } |
options.castShadow? | boolean |
options.receiveShadow? | boolean |
options.instanceEntityIds? | number[] |
options.modelPath? | string |

