Class

ARObjectAnchor

Information about the position and orientation of a real-world 3D object detected in a world-tracking AR session.

Overview

When you run a world-tracking AR session and specify ARReferenceObject objects for the session configuration's detectionObjects property, ARKit searches for those objects in the real-world environment. When the session recognizes an object, it automatically adds to its list of anchors an ARObjectAnchor for each detected object.

To place virtual 3D content that matches the position or size of the detected object, use the anchor's inherited transform property together with the center and extent of the anchor's referenceObject.

Topics

Identifying Detected Objects

var referenceObject: ARReferenceObject

The detected object referenced by the object anchor.

Relationships

Inherits From

Conforms To

See Also

Object Detection

Scanning and Detecting 3D Objects

Record spatial features of real-world objects, then use the results to find those objects in the user’s environment and trigger AR content.

class ARReferenceObject

A 3D object to be recognized in the real-world environment during a world-tracking AR session.

Beta
class ARObjectScanningConfiguration

A configuration that uses the back-facing camera to collect high-fidelity spatial data for use in scanning 3D objects for later detection.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software