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

OVRFace Class

Extends MonoBehaviour
Drives blend shapes on a SkinnedMeshRenderer based on the face tracking data provided by OVRFaceExpressions.
This is done by taking in face tracking weights (an array of weights based on the Facial Action Coding System (FACS)), and applying it to a SkinnedMeshRenderer by updating the blend shapes on the SkinnedMeshRenderer every frame. As the values from the face tracking data may differ in range from the blend shape range on the skinned mesh renderer, a modification of values is required by setting the OVRFace.BlendShapeStrengthMultiplier which will multiply the input before setting the blend shape values on the SkinnedMeshRenderer. For more information, please see Face Tracking for Movement SDK for Unity.
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 a OVRFaceExpressions component to fetch tracking data from.

Properties

The reference to the OVRFaceExpressions component, which contains the face tracking weights to be applied to the blend shapes on the skinned mesh renderer.
The multiplier applied on the OVRFaceExpressions tracking weights as they are mapped to blend shapes on the SkinnedMeshRenderer.
This is needed as the blend shape range in Unity can vary based on the model (i.e. 0-100), while the weights from face tracking range from 0-1.
The SkinnedMeshRenderer which contains the blend shapes that will be updated with the face tracking weights from OVRFaceExpressions.

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void Update ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon