Class RuntimeDebuggerOpenXRFeature
A runtime debugger feature. Intercepts all OpenXR calls and forwards them over player connection to an editor window.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.XR.OpenXR.Features.RuntimeDebugger
Syntax
public class RuntimeDebuggerOpenXRFeature : OpenXRFeature
Fields
cacheSize
Size of main-thread cache on device for runtime debugger in bytes.
Declaration
public uint cacheSize
Field Value
Type | Description |
---|---|
UInt32 |
perThreadCacheSize
Size of per-thread cache on device for runtime debugger in bytes.
Declaration
public uint perThreadCacheSize
Field Value
Type | Description |
---|---|
UInt32 |
Methods
HookGetInstanceProcAddr(IntPtr)
Called to hook xrGetInstanceProcAddr. Returning a different function pointer allows intercepting any OpenXR method.
Declaration
protected override IntPtr HookGetInstanceProcAddr(IntPtr func)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | func | xrGetInstanceProcAddr native function pointer |
Returns
Type | Description |
---|---|
IntPtr | Function pointer that Unity will use to look up OpenXR native functions. |