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

OVRFace Class

Component to drive blend shapes on a SkinnedMeshRenderer based on Face Tracking provided by OVRFaceExpressions.
OVRFace extends MonoBehaviour.

Overview

Properties

Start this instance.
float
SkinnedMeshRenderer

Object Data

void
Awake ( )
void
Start ( )
void
Update ( )
GetFaceExpression
( int blendShapeIndex )
Fetches the OVRFaceExpressions.FaceExpression for a given blend shape index on the shared mesh of the SkinnedMeshRenderer on the same component.
bool
GetWeightValue
( int blendShapeIndex,
out float weightValue )
Calculates the value for the specific target blend shape of the shared mesh SkinnedMeshRenderer

Details

Detailed Description

Intended to be used as a base type that is inherited from, in order to provide mapping logic from blend shape indices. The mapping of OVRFaceExpressions.FaceExpression to blend shapes is accomplished by overriding OVRFace.GetFaceExpression(int). Needs to be linked to an OVRFaceExpressions component to fetch tracking data from.

Properties

OVRFaceExpressions OVRFace.FaceExpressions
Start this instance.
Will validate that all properties are set correctly
float OVRFace.BlendShapeStrengthMultiplier
No description available.
SkinnedMeshRenderer OVRFace.SkinnedMesh
No description available.

Object Data

virtual void OVRFace.Awake ( )
No description available.
virtual void OVRFace.Start ( )
No description available.
virtual void OVRFace.Update ( )
No description available.
virtual OVRFaceExpressions.FaceExpression OVRFace.GetFaceExpression
( int blendShapeIndex )
Fetches the OVRFaceExpressions.FaceExpression for a given blend shape index on the shared mesh of the SkinnedMeshRenderer on the same component.
Override this function to provide the mapping between blend shapes and face expressions
Parameters
blendShapeIndex
The index of the blend shape, will be in-between 0 and the number of blend shapes on the shared mesh.
Returns
Returns the OVRFaceExpressions.FaceExpression to drive the bland shape identified by blendShapeIndex .
virtual bool OVRFace.GetWeightValue
( int blendShapeIndex,
out float weightValue )
Calculates the value for the specific target blend shape of the shared mesh SkinnedMeshRenderer
Parameters
blendShapeIndex
Index of the blend shape of the shared mesh SkinnedMeshRenderer
weightValue
Calculated value
Returns
true if value was calculated, false if no value available for that blend shape
Did you find this page helpful?
Thumbs up icon
Thumbs down icon