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

IMeshWeightsProvider Interface

Interface to define a custom blendshape weights provider for a skinned mesh.
Implement this interface if you wish to store the blendshape weights in a separate components for processing via IMeshWeightsProvider.UpdateWeights(OVRFaceExpressions) and later retrieval via GetWeightValue(int, out float).

Member Functions

Updates the weights value, passed in from a OVRFaceExpressions instance.
You may use to possibly store incoming weights for later modification.
Parameters
faceExpressions
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.
Parameters
blendshapeIndex
Blendshape index on skinned mesh renderer.
weightValue
Output weight value.
Returns
True if successful, false if not.
Did you find this page helpful?