Creates an anchor entity that uses an existing AR anchor.
SDKs
- iOS 13.0+
- Xcode 11.0+
Framework
- Reality
Kit
Creates an anchor entity that uses an existing AR anchor.
SDKs
Framework
init()
Creates a new anchor entity.
init(Anchoring Component .Target)
Creates an anchor entity targeting a particular kind of anchor.
init(plane: Anchoring Component .Target .Alignment, classification: Anchoring Component .Target .Classification, minimum Bounds: SIMD2<Float>)
Creates an anchor entity that targets a plane with the given characteristics.
init(raycast Result: ARRaycast Result)
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.