Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
federicaottonello's avatar
federicaottonello
Honored Guest
5 months ago

Custom hand model using Meta XR SDK

Hi everyone,

I'm following this official tutorial from Meta to customize the hand model in Unity using the Interaction SDK:

Meta tutorial

After completing the steps and launching the scene, I get the following error:


NullReferenceException: Object reference not set to an instance of an object
Oculus.Interaction.Input.DataModifier`1[TData].UpdateData () (at ./Library/PackageCache/com.meta.xr.sdk.interaction@77.0.0/Runtime/Scripts/Input/DataModifier.cs:103)
Oculus.Interaction.Input.DataSource`1[TData].GetData () (at ./Library/PackageCache/com.meta.xr.sdk.interaction@77.0.0/Runtime/Scripts/Input/DataSource.cs:225)
Oculus.Interaction.Input.Hand.get_IsTrackedDataValid () (at ./Library/PackageCache/com.meta.xr.sdk.interaction@77.0.0/Runtime/Scripts/Input/Hands/Hand.cs:294)
Oculus.Interaction.HandVisual.UpdateVisibility () (at ./Library/PackageCache/com.meta.xr.sdk.interaction@77.0.0/Runtime/Scripts/Interaction/Visuals/HandVisual.cs:250)
Oculus.Interaction.HandVisual.Start () (at ./Library/PackageCache/com.meta.xr.sdk.interaction@77.0.0/Runtime/Scripts/Interaction/Visuals/HandVisual.cs:223)


My setup:

Unity version: 2022.3.46f1

Meta XR SDK: 77.0.0

Device: Meta Quest 3 (via Link)

I followed the guide to retarget and assign a custom mesh

The scene includes the custom hand mesh prefab and the correct shader

Our hand tracking camera rig didn’t have the HandConfidenceVisual script, so we tried to manually add it, but nothing changed

How can I make it work?
Is there a more detailed tutorial I can follow?

My goal is to use hand tracking with custom hand prefabs, but I haven’t found much documentation about it.

1 Reply

Replies have been turned off for this discussion