Forum Discussion

dhiran_karki's avatar
dhiran_karki
Explorer
4 months ago
Solved

Meta/Lit shader error with Hand Grab Block prefab in Unity 6.2 (Meta XR Interaction SDK)

When I use the Hand Grab Block prefab from the Meta XR Interaction SDK, a cube with the Meta/Lit shader is automatically included. In Unity 6.2, this shader throws repeated console errors.

The project still runs, but sometimes Unity crashes (not certain if directly related to this shader).

Unity Version

  • Unity 6.2

Meta XR SDK

  • Meta XR Interaction SDK (latest from Unity Asset Store)

Expected Result

Prefab should work without shader/material errors.

Actual Result

Console shows repeated shader errors:

Shader error: State comes from an incompatible keyword space Expected: From shader: 'Meta/Lit' Keyword count: 76 ... Actual: From shader: 'Universal Render Pipeline/Lit' Keyword count: 66 ...

- Should I replace the shader/material with URP Lit, or is there a known fix/update for this issue?

  • Thank you , deleting that cube entirely and applying hand grab to that cube with URP lit solved the issue. 

    As materials is read-only  in meta xr it doesn't allow to change shader so it only allows to copy and paste materials outside in separate folder where I was able to change shader.

2 Replies

  • Howdy dhiran_karki!

    I'm sorry to hear that you're having trouble with the Interaction SDK and the Meta Lit shaders within the included cube, I get how frustrating that can be. This issue has been reported by other developers using Unity v6.x, and currently there is no confirmed fix. Since you're having this issue it's not a bad idea to try switching to URP Lit and see if the error still pops up. If you'd like to file a bug report or a feature request, you can do that through your MQDH dashboard.

    Hope this helps!

    -G

    • dhiran_karki's avatar
      dhiran_karki
      Explorer

      Thank you , deleting that cube entirely and applying hand grab to that cube with URP lit solved the issue. 

      As materials is read-only  in meta xr it doesn't allow to change shader so it only allows to copy and paste materials outside in separate folder where I was able to change shader.

→ Find helpful resources to begin your development journey in Getting Started

→ Get the latest information about HorizonOS development in News & Announcements.

→ Access Start program mentor videos and share knowledge, tutorials, and videos in Community Resources.

→ Get support or provide help in Questions & Discussions.

→ Show off your work in What I’m Building to get feedback and find playtesters.

→ Looking for documentation?  Developer Docs

→ Looking for account support?  Support Center

→ Looking for the previous forum?  Forum Archive

→ Looking to join the Start program? Apply here.

 

Recent Discussions