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

OVRFace Class

Extends MonoBehaviour
Component to drive blend shapes on a SkinnedMeshRenderer based on Face Tracking provided by OVRFaceExpressions.
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

Start this instance.
Will validate that all properties are set correctly
float BlendShapeStrengthMultiplier[Get]
SkinnedMeshRenderer SkinnedMesh[Get]

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void Update ( )
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 .
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