Class SteamVR_Utils
  
  
  
  
    Inheritance
    System.Object
    SteamVR_Utils
   
  
    Inherited Members
    
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ToString()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
   
  
  Assembly: Assembly-CSharp.dll
  Syntax
  
    public static class SteamVR_Utils
   
  Methods
  
  
  
  
  Abs(Single)
  
  
  Declaration
  
    public static float Abs(float A)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Single | 
        A | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Single | 
         | 
      
    
  
  
  
  
  Abs(Vector2)
  
  
  Declaration
  
    public static Vector2 Abs(Vector2 A)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | UnityEngine.Vector2 | 
        A | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | UnityEngine.Vector2 | 
         | 
      
    
  
  
  
  
  Abs(Vector3)
  
  
  Declaration
  
    public static Vector3 Abs(Vector3 A)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | UnityEngine.Vector3 | 
        A | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | UnityEngine.Vector3 | 
         | 
      
    
  
  
  
  
  CallSystemFn(SteamVR_Utils.SystemFn, Object[])
  
  
  Declaration
  
    public static object CallSystemFn(SteamVR_Utils.SystemFn fn, params object[] args)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Object | 
         | 
      
    
  
  
  
  
  ConvertToForwardSlashes(String)
  
  
  Declaration
  
    public static string ConvertToForwardSlashes(string fromString)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        fromString | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  DrawVelocity(Int32, Vector3, Vector3, Single)
  
  
  Declaration
  
    public static void DrawVelocity(int key, Vector3 position, Vector3 velocity, float destroyAfterSeconds = 5F)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int32 | 
        key | 
         | 
      
      
        | UnityEngine.Vector3 | 
        position | 
         | 
      
      
        | UnityEngine.Vector3 | 
        velocity | 
         | 
      
      
        | System.Single | 
        destroyAfterSeconds | 
         | 
      
    
  
  
  
  
  DrawVelocity(Int32, Vector3, Vector3, Color, Single)
  
  
  Declaration
  
    public static void DrawVelocity(int key, Vector3 position, Vector3 velocity, Color color, float destroyAfterSeconds = 5F)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int32 | 
        key | 
         | 
      
      
        | UnityEngine.Vector3 | 
        position | 
         | 
      
      
        | UnityEngine.Vector3 | 
        velocity | 
         | 
      
      
        | UnityEngine.Color | 
        color | 
         | 
      
      
        | System.Single | 
        destroyAfterSeconds | 
         | 
      
    
  
  
  
  
  GetBadMD5Hash(Byte[])
  
  
  Declaration
  
    public static string GetBadMD5Hash(byte[] bytes)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Byte[] | 
        bytes | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  GetBadMD5Hash(String)
  Bad because the secret key is here in plain text
 
  
  Declaration
  
    public static string GetBadMD5Hash(string usedString)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        usedString | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  GetBadMD5HashFromFile(String)
  
  
  Declaration
  
    public static string GetBadMD5HashFromFile(string filePath)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        filePath | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
  
  
  
  
  
  Declaration
  
    public static float GetLossyScale(Transform forTransform)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | UnityEngine.Transform | 
        forTransform | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Single | 
         | 
      
    
  
  
  
  
  GetPosition(Matrix4x4)
  
  
  Declaration
  
    public static Vector3 GetPosition(this Matrix4x4 matrix)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | UnityEngine.Matrix4x4 | 
        matrix | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | UnityEngine.Vector3 | 
         | 
      
    
  
  
  
  
  GetPosition(HmdMatrix34_t)
  
  
  Declaration
  
    public static Vector3 GetPosition(HmdMatrix34_t matrix)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | UnityEngine.Vector3 | 
         | 
      
    
  
  
  
  
  GetRotation(Matrix4x4)
  
  
  Declaration
  
    public static Quaternion GetRotation(this Matrix4x4 matrix)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | UnityEngine.Matrix4x4 | 
        matrix | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | UnityEngine.Quaternion | 
         | 
      
    
  
  
  
  
  GetRotation(HmdMatrix34_t)
  
  
  Declaration
  
    public static Quaternion GetRotation(HmdMatrix34_t matrix)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | UnityEngine.Quaternion | 
         | 
      
    
  
  
  
  
  GetScale(Matrix4x4)
  
  
  Declaration
  
    public static Vector3 GetScale(this Matrix4x4 m)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | UnityEngine.Matrix4x4 | 
        m | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | UnityEngine.Vector3 | 
         | 
      
    
  
  
  
  
  InverseLerp(Double, Double, Double)
  
  
  Declaration
  
    public static double InverseLerp(double from, double to, double result)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Double | 
        from | 
         | 
      
      
        | System.Double | 
        to | 
         | 
      
      
        | System.Double | 
        result | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Double | 
         | 
      
    
  
  
  
  
  InverseLerp(Single, Single, Single)
  
  
  Declaration
  
    public static float InverseLerp(float from, float to, float result)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Single | 
        from | 
         | 
      
      
        | System.Single | 
        to | 
         | 
      
      
        | System.Single | 
        result | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Single | 
         | 
      
    
  
  
  
  
  InverseLerp(Vector3, Vector3, Vector3)
  
  
  Declaration
  
    public static float InverseLerp(Vector3 from, Vector3 to, Vector3 result)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | UnityEngine.Vector3 | 
        from | 
         | 
      
      
        | UnityEngine.Vector3 | 
        to | 
         | 
      
      
        | UnityEngine.Vector3 | 
        result | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Single | 
         | 
      
    
  
  
  
  
  IsValid(Quaternion)
  
  
  Declaration
  
    public static bool IsValid(Quaternion rotation)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | UnityEngine.Quaternion | 
        rotation | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  IsValid(Vector3)
  
  
  Declaration
  
    public static bool IsValid(Vector3 vector)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | UnityEngine.Vector3 | 
        vector | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  Lerp(Double, Double, Double)
  
  
  Declaration
  
    public static double Lerp(double from, double to, double amount)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Double | 
        from | 
         | 
      
      
        | System.Double | 
        to | 
         | 
      
      
        | System.Double | 
        amount | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Double | 
         | 
      
    
  
  
  
  
  Lerp(Single, Single, Single)
  
  
  Declaration
  
    public static float Lerp(float from, float to, float amount)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Single | 
        from | 
         | 
      
      
        | System.Single | 
        to | 
         | 
      
      
        | System.Single | 
        amount | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Single | 
         | 
      
    
  
  
  
  
  Lerp(Vector3, Vector3, Single)
  
  
  Declaration
  
    public static Vector3 Lerp(Vector3 from, Vector3 to, float amount)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | UnityEngine.Vector3 | 
        from | 
         | 
      
      
        | UnityEngine.Vector3 | 
        to | 
         | 
      
      
        | System.Single | 
        amount | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | UnityEngine.Vector3 | 
         | 
      
    
  
  
  
  
  Saturate(Single)
  
  
  Declaration
  
    public static float Saturate(float A)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Single | 
        A | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Single | 
         | 
      
    
  
  
  
  
  Saturate(Vector2)
  
  
  Declaration
  
    public static Vector2 Saturate(Vector2 A)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | UnityEngine.Vector2 | 
        A | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | UnityEngine.Vector2 | 
         | 
      
    
  
  
  
  
  Saturate(Vector3)
  
  
  Declaration
  
    public static Vector3 Saturate(Vector3 A)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | UnityEngine.Vector3 | 
        A | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | UnityEngine.Vector3 | 
         | 
      
    
  
  
  
  
  Slerp(Quaternion, Quaternion, Single)
  
  
  Declaration
  
    public static Quaternion Slerp(Quaternion A, Quaternion B, float time)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | UnityEngine.Quaternion | 
        A | 
         | 
      
      
        | UnityEngine.Quaternion | 
        B | 
         | 
      
      
        | System.Single | 
        time | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | UnityEngine.Quaternion | 
         | 
      
    
  
  
  
  
  TakeStereoScreenshot(UInt32, GameObject, Int32, Single, ref String, ref String)
  
  
  Declaration
  
    public static void TakeStereoScreenshot(uint screenshotHandle, GameObject target, int cellSize, float ipd, ref string previewFilename, ref string VRFilename)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.UInt32 | 
        screenshotHandle | 
         | 
      
      
        | UnityEngine.GameObject | 
        target | 
         | 
      
      
        | System.Int32 | 
        cellSize | 
         | 
      
      
        | System.Single | 
        ipd | 
         | 
      
      
        | System.String | 
        previewFilename | 
         | 
      
      
        | System.String | 
        VRFilename | 
         |