Skip to content

@relu-interactives/spatial-ecs


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

Function: createImageTargetComponent() ​

ts
function createImageTargetComponent(
   world, 
   entityId, ...
   args): ImageTarget;

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

Parameters ​

ParameterType
worldWorld
entityIdnumber
...args[{ targets?: ImageTargetReference[]; compiledTargetUrl?: string; compiledTargetDir?: string; }, Texture<unknown, TextureEventMap>, Object3D<Object3DEventMap>]

Returns ​

ImageTarget