ARFrame.HitTest(CGPoint, ARHitTestResultType) Method

Definition

Returns real-world objects such as planes and ARAnchor objects in the ray projected from point.

[Foundation.Export("hitTest:types:")]
public virtual ARKit.ARHitTestResult[] HitTest (CoreGraphics.CGPoint point, ARKit.ARHitTestResultType types);
abstract member HitTest : CoreGraphics.CGPoint * ARKit.ARHitTestResultType -> ARKit.ARHitTestResult[]
override this.HitTest : CoreGraphics.CGPoint * ARKit.ARHitTestResultType -> ARKit.ARHitTestResult[]

Parameters

point
CGPoint

Point, in image coordinates normalized to the range [0,0]-[1,1], to perform a hit-test.

types
ARHitTestResultType

The ARHitTestResultType(s) that should be tested for.

Returns

Objects are ordered from nearest to farthest.

Attributes

Applies to