Jump to content

Remio

Verified Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Remio

  1. I am having an issue with using OpenXR for Unity android build. Input does not seem to fully register upon starting the app. Some controls work and some don't, and there is a null reference spam when checking the console logs:

    2022/11/03 08:04:48.269 4196 4222 Error Unity NullReferenceException: Object reference not set to an instance of an object.
    2022/11/03 08:04:48.269 4196 4222 Error Unity   at UnityEngine.InputSystem.InputActionState.ApplyProcessors[TValue] (System.Int32 bindingIndex, TValue value, UnityEngine.InputSystem.InputControl`1[TValue] controlOfType) [0x00000] in <00000000000000000000000000000000>:0 
    2022/11/03 08:04:48.269 4196 4222 Error Unity   at UnityEngine.InputSystem.InputAction.ReadValue[TValue] () [0x00000] in <00000000000000000000000000000000>:0 
    2022/11/03 08:04:48.269 4196 4222 Error Unity   at UnityEngine.XR.Interaction.Toolkit.ActionBasedSnapTurnProvider.ReadInput () [0x00000] in <00000000000000000000000000000000>:0 
    2022/11/03 08:04:48.269 4196 4222 Error Unity   at UnityEngine.XR.Interaction.Toolkit.SnapTurnProviderBase.Update () [0x00000] in <00000000000000000000000000000000>:0 
    

    Weirdly enough, this error only occurs on first time use of the app. When restarting the app everything works fine, all inputs register and no errors. If I restart the headset or reinstall the app, the error reappears. I'm wondering if there's something I'm missing initialization related for OpenXR loader? Been searching through the codebase and settings and cannot find anything

     

    Using Unity 2021.3.8f1,  OpenXR 1.5.3 with Unity's Input System 1.4.2 with these settings:

     

    Screenshot 2022-11-03 110050.png

    Screenshot 2022-11-03 110105.png

×
×
  • Create New...