Skip to main content

Type Alias: AnchoredObjectFactory()

AnchoredObjectFactory = (label, record) => THREE.Object3D | null

Defined in: src/world/anchors/AnchoredObjects.ts:16

Builds the object to represent a restored anchor.

Returning null skips the record, which is how an app ignores anchors it no longer has content for.

Parameters​

label​

string

The label the anchor was saved with.

record​

AnchorRecord

The full saved record.

Returns​

THREE.Object3D | null

The object to place, or null to skip.