Table of Contents

Class XRHitTestSource

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The XRHitTestSource interface of the WebXR Device API handles hit test subscriptions. You can get an XRHitTestSource object by using the RequestHitTestSource(XRHitTestOptionsInit) method.
[Value("XRHitTestSource")]
public class XRHitTestSource
Inheritance
XRHitTestSource
Inherited Members

Remarks

This object doesn't itself contain hit test results, but it is used to compute hit tests for each XRFrame by calling GetHitTestResults(XRHitTestSource), which returns XRHitTestResult objects.

-XRTransientInputHitTestSource

See also on MDN

Constructors

XRHitTestSource()

public XRHitTestSource()

Methods

Cancel()

NOTE
Experimental
The cancel() method of the XRHitTestSource interface unsubscribes a hit test.
[Value("cancel")]
public GlobalObject.Undefined Cancel()

Returns

GlobalObject.Undefined

None (GlobalObject.Undefined).

Remarks