A configuration you use to collect high-fidelity spatial data about real objects in the physical environment.


class ARObjectScanningConfiguration : ARConfiguration


To create an app that recognizes objects in the physical environment, first you scan them during development using ARObjectScanningConfiguration. After you’ve scanned an object, call createReferenceObject(transform:center:extent:completionHandler:) to turn it into an ARReferenceObject that you can use to detect it again at run-time. When users run your app, you ask ARKit to look for your scanned obects by running a world tracking configuration and assigning reference objects to its detectionObjects property.


Creating a Configuration


Initializes a new object scanning configuration.

Enabling Plane Detection

var planeDetection: ARWorldTrackingConfiguration.PlaneDetection

A value specifying whether and how the session attempts to automatically detect flat surfaces in the camera-captured image.

struct ARWorldTrackingConfiguration.PlaneDetection

Options for whether and how ARKit detects flat surfaces in captured images.

Managing Device Camera Behavior

var isAutoFocusEnabled: Bool

A Boolean value that determines whether the device camera uses fixed focus or autofocus behavior.


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

The description of a real-world object you want ARKit to look for in the physical environment during an AR session.

class ARObjectAnchor

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