Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / components / ImageTargetAnchor

Class: ImageTargetAnchor ​

Defined in: components/ImageTargetAnchor.ts:18

Marks an entity as an anchor for an image-tracking target. The image tracking system reveals the entity when the referenced target is found and hides it when the target is lost.

Extends ​

Constructors ​

Constructor ​

ts
new ImageTargetAnchor(options?): ImageTargetAnchor;

Defined in: components/ImageTargetAnchor.ts:24

Parameters ​

ParameterType
options?ImageTargetAnchorOptions

Returns ​

ImageTargetAnchor

Overrides ​

Component.constructor

Properties ​

PropertyTypeDescriptionDefined in
targetIdnumber | nullTracked target id this anchor follows. null when unbound.components/ImageTargetAnchor.ts:20
targetUrl?stringCanonical target image URL, retained as a fallback identifier.components/ImageTargetAnchor.ts:22