Class Utils
Namespace: Unity.XR.Oculus
Syntax
public static class Utils
Methods
SetColorScaleAndOffset(Vector4, Vector4)
Set the color scale and color offset of the eye texture layers
Declaration
public static void SetColorScaleAndOffset(Vector4 colorScale, Vector4 colorOffset)
Parameters
| Type | Name | Description | 
|---|---|---|
| Vector4 | colorScale | Scales the eye layer texture color by this Vector4.  | 
| Vector4 | colorOffset | Offsets the eye layer texture color by this Vector4  | 
SetFoveationLevel(Int32)
Set the degree of foveation. See Oculus Documention.
Declaration
public static void SetFoveationLevel(int level)
Parameters
| Type | Name | Description | 
|---|---|---|
| Int32 | level | level can be 0, 1, 2, 3, or 4: 
  |