API reference
API reference
Select your platform
No SDKs available
No versions available

OVRExtensions Class

Miscellaneous extension methods that any script can use.

Static Member Functions

Converts the given world-space transform to an OVRPose in tracking space.
Converts the given pose from tracking-space to world-space.
Converts the given pose from tracking-space to world-space.
Converts the given pose from tracking-space to head-space.
Converts the given world-space transform to an OVRPose in head space.
static OVRPose ToOVRPose
( this Transform t,
bool isLocal )
static void FromOVRPose
( this Transform t,
OVRPose pose,
bool isLocal )
static OVRPose ToOVRPose
( this OVRPlugin.Posef p )
static OVRTracker.Frustum ToFrustum
( this OVRPlugin.Frustumf f )
static Color FromColorf
( this OVRPlugin.Colorf c )
static OVRPlugin.Colorf ToColorf
( this Color c )
static Vector2 FromSizef
( this OVRPlugin.Sizef v )
static OVRPlugin.Sizef ToSizef
( this Vector2 v )
static Vector2 FromVector2f
( this OVRPlugin.Vector2f v )
static Vector2 FromFlippedXVector2f
( this OVRPlugin.Vector2f v )
static OVRPlugin.Vector2f ToVector2f
( this Vector2 v )
static Vector3 FromSize3f
( this OVRPlugin.Size3f v )
static OVRPlugin.Size3f ToSize3f
( this Vector3 v )
static Vector3 FromVector3f
( this OVRPlugin.Vector3f v )
static Vector3 FromFlippedXVector3f
( this OVRPlugin.Vector3f v )
static Vector3 FromFlippedZVector3f
( this OVRPlugin.Vector3f v )
static OVRPlugin.Vector3f ToVector3f
( this Vector3 v )
static OVRPlugin.Vector3f ToFlippedXVector3f
( this Vector3 v )
static OVRPlugin.Vector3f ToFlippedZVector3f
( this Vector3 v )
static Vector4 FromVector4f
( this OVRPlugin.Vector4f v )
static OVRPlugin.Vector4f ToVector4f
( this Vector4 v )
static Quaternion FromQuatf
( this OVRPlugin.Quatf q )
static Quaternion FromFlippedXQuatf
( this OVRPlugin.Quatf q )
static Quaternion FromFlippedZQuatf
( this OVRPlugin.Quatf q )
static OVRPlugin.Quatf ToQuatf
( this Quaternion q )
static OVRPlugin.Quatf ToFlippedXQuatf
( this Quaternion q )
static OVRPlugin.Quatf ToFlippedZQuatf
( this Quaternion q )
static OVR.OpenVR.HmdMatrix34_t ConvertToHMDMatrix34
( this Matrix4x4 m )
static Transform FindChildRecursive
( this Transform parent,
string name )
static bool Equals
( this Gradient gradient,
Gradient otherGradient )
static void CopyFrom
( this Gradient gradient,
Gradient otherGradient )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon