Instance Property

detectionObjects

A set of 3D objects for ARKit to attempt to detect in the user's environment.

Declaration

var detectionObjects: Set<ARReferenceObject> { get set }

Discussion

Use this property to choose known 3D objects for ARKit to find in the user's environment and present as ARObjectAnchor for use in your AR experience.

To create reference objects for detection, scan them in a world-tracking session and use ARWorldMap to extract ARReferenceObject instances. You can then save reference objects as files and package them in any ARKit app you create using an Xcode asset catalog.