Class Utils
Inherited Members
Namespace: Unity.XR.Oculus
Assembly: solution.dll
Syntax
public static class Utils
Properties
| Name | Description |
|---|---|
| eyeTrackedFoveatedRenderingEnabled | Gets or sets whether eye tracked foveated rendering is enabled or not. |
| eyeTrackedFoveatedRenderingSupported | Returns whether or not eye tracked foveated rendering (ETFR) is supported. You cannot enable ETFR using eyeTrackedFoveatedRenderingEnabled if the feature isn't supported. |
| foveatedRenderingLevel | Gets or sets the foveated rendering level. This works for both FFR and ETFR level can be 0, 1, 2, 3, or 4:
|
| useDynamicFoveatedRendering | Gets or sets dynamic foveated rendering which will change the foveated rendering level automatically based on the current performance. Works for both FFR and ETFR. |
Methods
| Name | Description |
|---|---|
| EnableDynamicFFR(bool) | Enable or disable dynamic foveated rendering. Only supported on mobile. See Oculus Documention. |
| GetFoveationLevel() | Returns the level of foveated rendering. Only supported on mobile. See Oculus Documentation. |
| GetSystemHeadsetType() | Returns the type of the current headset |
| IsEyeTrackingPermissionGranted() | Returns true if the user has allowed the Eye Tracking permission. |
| SetColorScaleAndOffset(Vector4, Vector4) | Set the color scale and color offset of the eye texture layers |
| SetFoveationLevel(int) | Set the degree of foveation. Only supported on mobile. See Oculus Documention. |