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

OVRGLTFAnimationNodeMorphTargetHandler Class

Helper class that updates mesh verticies and UVs based on provided weights using the mesh's morph targets.
This is required when animating the GLTF model so that all mesh attributes are updated correctly when the mesh moves.

Constructors

OVRGLTFAnimationNodeMorphTargetHandler ( meshData )
Signature
OVRGLTFAnimationNodeMorphTargetHandler(OVRMeshData meshData)
Parameters
meshData: OVRMeshData

Fields

Weights : float[]
Signature
float [] Weights

Methods

MarkModified ()
Marks the mesh data as modified so that Update will process the new morph target weights.
Signature
void MarkModified()
Returns
void
Update ()
Updates the mesh vertices and UVs when the weights are modified.
This should be called during an animation update to ensure the mesh is updated correctly.
Signature
void Update()
Returns
void