Structure

ARHitTestResult.ResultType

Possible types of hit-test searching to perform or type of objects found by a search.

Topics

Result Types

static var featurePoint: ARHitTestResult.ResultType

A point automatically identified by ARKit as part of a continuous surface, but without a corresponding anchor.

static var estimatedHorizontalPlane: ARHitTestResult.ResultType

A real-world planar surface detected by the search (without a corresponding anchor), whose orientation is perpendicular to gravity.

static var estimatedVerticalPlane: ARHitTestResult.ResultType

A real-world planar surface detected by the search, whose orientation is parallel to gravity.

Beta
static var existingPlane: ARHitTestResult.ResultType

A plane anchor already in the scene (detected with the planeDetection option), without considering the plane's size.

static var existingPlaneUsingExtent: ARHitTestResult.ResultType

A plane anchor already in the scene (detected with the planeDetection option), respecting the plane's limited size.

static var existingPlaneUsingGeometry: ARHitTestResult.ResultType

A plane anchor already in the scene (detected with the planeDetection option), respecting the plane's estimated size and shape.

Beta

See Also

Identifying Results

var type: ARHitTestResult.ResultType

The kind of detected feature the search result represents.

var anchor: ARAnchor?

The anchor representing the detected surface, if any.

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