Initializer

init(plane:classification:minimumBounds:)

Creates an anchor entity that targets a plane with the given characteristics.

Declaration

convenience init(plane alignment: AnchoringComponent.Target.Alignment, classification: AnchoringComponent.Target.Classification = .any, minimumBounds: SIMD2<Float> = [0, 0])

Parameters

alignment

The alignment of the plane to target, like horizontal or vertical.

classification

The classification of the target plane to look for, like floor or ceiling.

minimumBounds

The minium size of the target plane.

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: float4x4)

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

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.