cancel
Showing results for 
Search instead for 
Did you mean: 

Event System - NullReferenceException in OVRInputModule when Adding ControllerTracker Building Block

jackthehack.2025
Honored Guest

 

Hello Meta Developer Community,

I'm currently developing a VR project using the Meta All-in-One SDK and have encountered a persistent issue related to the ControllerTracker Building Blocks.

Project Setup:

  • Unity Version: [6000.0.26f1]
  • Meta All-in-One SDK Version: [72.0.0]
  • Target Platform: Meta Quest 2

Issue Description:

In my VR scene, I have implemented the following components:

  • Camera Rig
  • Teleportation Functionality
  • Controller Tracking
  • Virtual Hands
  • Canvas + Event System

All components function as expected until I add the ControllerTracker Building Blocks. Upon adding this, I receive the following error:

NullReferenceException: Object reference not set to an instance of an object UnityEngine.EventSystems.OVRInputModule.GetMouseStateFromRaycast (UnityEngine.Transform rayOrigin) (at ./Library/PackageCache/com.meta.xr.sdk.core/Scripts/Util/OVRInputModule.cs:831) UnityEngine.EventSystems.OVRInputModule.Process () (at ./Library/PackageCache/com.meta.xr.sdk.core/Scripts/Util/OVRInputModule.cs:550) UnityEngine.EventSystems.EventSystem.Update () (at ./Library/PackageCache/com.unity.ugui/Runtime/UGUI/EventSystem/EventSystem.cs:530)

Observations:

  • The error occurs specifically after integrating the ControllerTracker Building Blocks.
  • Prior to this addition, the application runs without any issues.
  • I have ensured that the EventSystem is correctly configured with the OVRInputModule, and the Ray Transform is assigned appropriately.

Steps Taken to Troubleshoot:

  1. Verified EventSystem Configuration: Ensured that the OVRInputModule is present and correctly set up.
  2. Checked Ray Transform Assignment: Confirmed that the Ray Transform is assigned to the correct controller anchor.
  3. Tested Scene Without ControllerTracker: The scene operates without errors when the ControllerTracker Building Blocks are omitted.

Request for Assistance:

Has anyone encountered a similar issue when using the ControllerTracker Building Blocks? Any insights or suggestions on how to resolve this NullReferenceException would be greatly appreciated.

Thank you in advance for your support.

Best regards,

Phil

 
 
 

 

0 REPLIES 0