Skip to content

@relu-interactives/spatial-ecs


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

Function: createLightComponent()

ts
function createLightComponent(
   world, 
   entityId, ...
   args): LightComponent;

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

Parameters

ParameterType
worldWorld
entityIdnumber
...args[Light<LightShadow<Camera> | undefined>]

Returns

LightComponent