SCNNode.HitTest 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.
Overloads
| Name | Description |
|---|---|
| HitTest(SCNVector3, SCNVector3, NSDictionary) | |
| HitTest(SCNVector3, SCNVector3, SCNHitTestOptions) |
Returns an array of hit test results for descendant nodes that intersect with a line between |
HitTest(SCNVector3, SCNVector3, NSDictionary)
[Foundation.Export("hitTestWithSegmentFromPoint:toPoint:options:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual SceneKit.SCNHitTestResult[] HitTest(SceneKit.SCNVector3 pointA, SceneKit.SCNVector3 pointB, Foundation.NSDictionary? options);
[<Foundation.Export("hitTestWithSegmentFromPoint:toPoint:options:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member HitTest : SceneKit.SCNVector3 * SceneKit.SCNVector3 * Foundation.NSDictionary -> SceneKit.SCNHitTestResult[]
override this.HitTest : SceneKit.SCNVector3 * SceneKit.SCNVector3 * Foundation.NSDictionary -> SceneKit.SCNHitTestResult[]
Parameters
- pointA
- SCNVector3
- pointB
- SCNVector3
- options
- NSDictionary
Returns
- Attributes
Applies to
HitTest(SCNVector3, SCNVector3, SCNHitTestOptions)
Returns an array of hit test results for descendant nodes that intersect with a line between pointA and pointB.
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public SceneKit.SCNHitTestResult[] HitTest(SceneKit.SCNVector3 pointA, SceneKit.SCNVector3 pointB, SceneKit.SCNHitTestOptions? options);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
member this.HitTest : SceneKit.SCNVector3 * SceneKit.SCNVector3 * SceneKit.SCNHitTestOptions -> SceneKit.SCNHitTestResult[]
Parameters
- pointA
- SCNVector3
- pointB
- SCNVector3
- options
- SCNHitTestOptions
Strongly typed set of options to perform the hit-test detection.
This parameter can be null.
Returns
- Attributes