- Home /
OnHandMeshUpdated() not triggered in Mixed Reality Toolkit
I'm working on a Mixed Reality app in Unity. I'm trying to update my own hand mesh according to: https://docs.microsoft.com/en-us/windows/mixed-reality/mrtk-unity/features/input/hand-tracking?view=mrtkunity-2021-05#hand-mesh-prefab
public void OnHandMeshUpdated(InputEventData<HandMeshInfo> eventData)
{
print("Hand mesh update!");
if (eventData.Handedness == myHandedness)
{
myMesh.vertices = eventData.InputData.vertices;
myMesh.normals = eventData.InputData.normals;
myMesh.triangles = eventData.InputData.triangles;
if (eventData.InputData.uvs != null && eventData.InputData.uvs.Length > 0)
{
myMesh.uv = eventData.InputData.uvs;
}
}
}
However, the method OnHandMeshUpdated(InputEventData eventData)
never triggers. I made sure I set the Hand Mesh Visualization Modes
to Everything
in MRTK
-> Articulated Hand Tracking
!
What am I missing? How can I animate my own hand mesh?
Unity: 2020.3.26f1
MRTK: 2.7.3
hand-mesh.png
(65.0 kB)
Comment
Your answer
Follow this Question
Related Questions
Animate fbx models inported into unity scenes 1 Answer
Model Problems 0 Answers
How can I properly control a complex model in Unity3D 1 Answer
Sketchup export 0 Answers