ARFrame.HitTest(CGPoint, ARHitTestResultType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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