Initializer

init(world:)

Creates an anchor entity with a target fixed at the given position in the scene.

Declaration

convenience init(world transform: float4x4)

Parameters

transform

The transform with which to initialize the world target.

See Also

Creating an Anchor

init()

Creates a new anchor entity.

init(AnchoringComponent.Target)

Creates an anchor entity targeting a particular kind of anchor.

init(anchor: ARAnchor)

Creates an anchor entity that uses an existing AR anchor.

init(raycastResult: ARRaycastResult)

Creates an anchor entity using the information about a real-world surface discovered using a ray-cast query.

init(world: SIMD3<Float>)

Creates an anchor entity with a target fixed at the given position in the scene.

func clone(recursive: Bool) -> Self

Duplicates the anchor entity to create a new entity.