Contents

init(plane:classification:minimumBounds:)

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

Declaration

@MainActor @preconcurrency 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 minimum size of the target plane.

See Also

Creating an anchor