Structure

ARWorldTrackingConfiguration.PlaneDetection

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

Declaration

struct PlaneDetection

Overview

Use an empty set literal [] to specify no plane detection.

Topics

Creating Plane Detection Options

init(rawValue: UInt)

Creates a plane detection options.

Plane Detection Options

static var horizontal: ARWorldTrackingConfiguration.PlaneDetection

The session detects planar surfaces that are perpendicular to gravity.

static var vertical: ARWorldTrackingConfiguration.PlaneDetection

The session detects surfaces that are parallel to gravity (regardless of other orientation).

Relationships

Conforms To

See Also

Enabling Plane Detection

var planeDetection: ARWorldTrackingConfiguration.PlaneDetection

A value that specifies if and how the session automatically attempts to detect flat surfaces in the camera-captured image.