Class MockHMD
Runtime scripting API for Mock HMD provider.
Inherited Members
Namespace: Unity.XR.MockHMD
Assembly: Unity.XR.MockHMD.dll
Syntax
public static class MockHMD
Methods
SetEyeResolution(int, int)
Set the resolution of the eye textures.
Declaration
public static extern bool SetEyeResolution(int width, int height)
Parameters
Returns
Type | Description |
---|---|
bool | true if eye texture resolution successfully set |
SetFoveationMode(bool, uint)
Declaration
public static bool SetFoveationMode(bool enable, uint gazeSimulatorMode)
Parameters
Returns
Type | Description |
---|---|
bool |
SetMirrorViewCrop(float)
Set the crop value applied when rendering the mirror view. This is useful to remove the peripheral distorted part of the image.
Declaration
public static extern bool SetMirrorViewCrop(float crop)
Parameters
Type | Name | Description |
---|---|---|
float | crop | the amount to remove from the image, valid range is 0.0 to 0.5 |
Returns
Type | Description |
---|---|
bool | true if mirror view crop successfully set |
SetRenderMode(RenderMode)
Set the stereo rendering mode.
Declaration
public static extern bool SetRenderMode(MockHMDBuildSettings.RenderMode renderMode)
Parameters
Type | Name | Description |
---|---|---|
Mock |
renderMode | rendering mode |
Returns
Type | Description |
---|---|
bool | true if render mode successfully set |