Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / createLODComponent

Function: createLODComponent() ​

ts
function createLODComponent(
   world, 
   entityId, ...
   args): LODComponent;

Defined in: factories/components/LODFactory.ts:4

Parameters ​

ParameterType
worldWorld
entityIdnumber
...args[Partial<Pick<LODComponent, "enabled" | "levels" | "cullScreenSize" | "cullDistance" | "hysteresis">>]

Returns ​

LODComponent