Got "EXCEPTION KeyNotFoundException in PolySpatialCore" when use XR.Hands visualizer in PolySpatial sample

Problem

When using HandVisualizer copied from XR Hands’s sample with PolySpatial, Hands can be seen in Vision Pro but other meshes can’t.

Environment:

  • Unity: 6000.0.18f1
  • Polyspatial: 2.0.0-pre11
  • XR Hands: 1.4.3
  • XCode-beta: version16.0 beta6

WHAT I DO:

  1. Setup an VisionOS project [install all related packages].
  2. Import PolySpatial samples and XR.Hands’s samples.
  3. Open both PolySpatial’s sample scene MixedRelaity and XR.Hands’s sample scene HandVisualizer.
  4. Copy HandVisualizer, Left Hand Tracking, Right Hand Tracking from HandVisualizer scene into MixedRelaity scene. Disable HandManager to avoid confusion.
  5. Convert built-in materials in HandVisualizer to URP.
  6. Remove HandVisualizer scene.
  7. Add 3D objects into MixedRelaity scene for testing.
  8. Build and Run in XCode

The project structure would be like this

Can see the Hands in Vision Pro but can not see the cube (also tried other primitives, can’t see either)

If disabled HandVisualizer, cube can show up.

XCode Log

It sounds like this is the same issue as in this post. We have a fix for the issue that will be included in the next 2.X release.

Yes, doing what you said in that post does the trick.

“comment out any calls to ToggleRenderers or ToggleDebugDrawJoints”

Thank you kapolka

1 Like