API reference

OVREnumExtensions Class

Extension methods for Core SDK Enums, including helpers to translate between enum types and OVRHandSkeletonVersions.

Static Methods

AsHandType ( skeletonType )
Translates an OVRSkeleton.SkeletonType to an OVRHand.Hand type.
Signature
static OVRHand.Hand AsHandType(this OVRSkeleton.SkeletonType skeletonType)
Parameters
skeletonType: this OVRSkeleton.SkeletonType
AsHandType ( meshType )
Translates an OVRMesh.MeshType to an OVRHand.Hand type.
Signature
static OVRHand.Hand AsHandType(this OVRMesh.MeshType meshType)
Parameters
meshType: this OVRMesh.MeshType
AsMeshType ( hand )
Signature
static OVRMesh.MeshType AsMeshType(this OVRHand.Hand hand)
Parameters
hand: this OVRHand.Hand
Returns
OVRMesh.MeshType
AsMeshType ( hand , version )
Translates an OVRHand.Hand of the provided OVRHandSkeletonVersion version to an OVRMesh.MeshType type.
Signature
static OVRMesh.MeshType AsMeshType(this OVRHand.Hand hand, OVRHandSkeletonVersion version)
Parameters
hand: this OVRHand.Hand
version: OVRHandSkeletonVersion
Returns
OVRMesh.MeshType
AsSkeletonType ( hand )
Signature
static OVRSkeleton.SkeletonType AsSkeletonType(this OVRHand.Hand hand)
Parameters
hand: this OVRHand.Hand
AsSkeletonType ( hand , version )
Translates an OVRHand.Hand of the provided OVRHandSkeletonVersion version to an OVRSkeleton.SkeletonType type.
Signature
static OVRSkeleton.SkeletonType AsSkeletonType(this OVRHand.Hand hand, OVRHandSkeletonVersion version)
Parameters
hand: this OVRHand.Hand
version: OVRHandSkeletonVersion
IsHand ( skeletonType )
Returns true if the provided OVRSkeleton.SkeletonType corresponds to any type of Hand skeleton.
Signature
static bool IsHand(this OVRSkeleton.SkeletonType skeletonType)
Parameters
skeletonType: this OVRSkeleton.SkeletonType
Returns
bool
IsHand ( meshType )
Returns true if the provided OVRMesh.MeshType corresponds to any type of Hand skeleton.
Signature
static bool IsHand(this OVRMesh.MeshType meshType)
Parameters
meshType: this OVRMesh.MeshType
Returns
bool
IsLeft ( type )
Returns true if the provided OVRSkeleton.SkeletonType is a left hand skeleton.
Signature
static bool IsLeft(this OVRSkeleton.SkeletonType type)
Parameters
Returns
bool
IsLeft ( type )
Returns true if the provided OVRMesh.MeshType is a left hand mesh.
Signature
static bool IsLeft(this OVRMesh.MeshType type)
Parameters
type: this OVRMesh.MeshType
Returns
bool
IsOpenXRHandMesh ( meshType )
Returns true if the provided OVRMesh.MeshType is a hand mesh corresponding to the OVRHandSkeletonVersion.OpenXR skeleton version.
Signature
static bool IsOpenXRHandMesh(this OVRMesh.MeshType meshType)
Parameters
meshType: this OVRMesh.MeshType
Returns
bool
IsOpenXRHandSkeleton ( skeletonType )
Returns true if the provided OVRSkeleton.SkeletonType is a hand skeleton corresponding to the OVRHandSkeletonVersion.OpenXR skeleton version.
Signature
static bool IsOpenXRHandSkeleton(this OVRSkeleton.SkeletonType skeletonType)
Parameters
skeletonType: this OVRSkeleton.SkeletonType
Returns
bool
IsOVRHandMesh ( meshType )
Returns true if the provided OVRMesh.MeshType is a hand mesh corresponding to the OVRHandSkeletonVersion.OVR skeleton version.
Signature
static bool IsOVRHandMesh(this OVRMesh.MeshType meshType)
Parameters
meshType: this OVRMesh.MeshType
Returns
bool
IsOVRHandSkeleton ( skeletonType )
Returns true if the provided OVRSkeleton.SkeletonType is a hand skeleton corresponding to the OVRHandSkeletonVersion.OVR skeleton version.
Signature
static bool IsOVRHandSkeleton(this OVRSkeleton.SkeletonType skeletonType)
Parameters
skeletonType: this OVRSkeleton.SkeletonType
Returns
bool