SkinnedMeshRenderer based on the face tracking data provided by OVRFaceExpressions.
SkinnedMesh
: SkinnedMeshRenderer
[Get] |
The SkinnedMeshRenderer which contains the blend shapes that will be updated with the face tracking weights from OVRFaceExpressions.
Signature
SkinnedMeshRenderer SkinnedMesh |
BlendShapeStrengthMultiplier
: float
[Get][Set] |
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.
Signature
float BlendShapeStrengthMultiplier |
FaceExpressions
: OVRFaceExpressions
[Get][Set] |
The reference to the OVRFaceExpressions component, which contains the face tracking weights to be applied to the blend shapes on the skinned mesh renderer.
Signature
OVRFaceExpressions FaceExpressions |
Awake
()
|
Signature
virtual void Awake() Returns void |
Start
()
|
Signature
virtual void Start() Returns void |
Update
()
|
Signature
virtual void Update() Returns void |
GetWeightValue
(
blendshapeIndex
, weightValue
)
|
Obtains a weight value for a given blendshape index; return a boolean based on if the call was successful or not.
Use this to obtain the weight value from a provider after IMeshWeightsProvider.UpdateWeights(OVRFaceExpressions) was called.
Signature
bool GetWeightValue(int blendshapeIndex, out float weightValue) Parameters blendshapeIndex: int
Blendshape index on skinned mesh renderer.
weightValue: out float
Output weight value.
Returns bool
True if successful, false if not.
|
UpdateWeights
(
faceExpressions
)
|
Updates the weights value, passed in from a OVRFaceExpressions instance.
You may use to possibly store incoming weights for later modification.
Signature
void UpdateWeights(OVRFaceExpressions faceExpressions) Parameters Returns void |