Search Unity

Question Registering XRInputSubsystem with WebGL build returns NULL

Discussion in 'AR/VR (XR) Discussion' started by marwi, Sep 21, 2020.

  1. marwi

    marwi

    Joined:
    Aug 13, 2014
    Posts:
    138
    Hello,

    we've tried loading an XRInputSubsystem in WebGL builds but it looks like the interfaces for the Input- and DisplaySubsystem are not present as unityInterfaces->Get<IUnityXRInputInterface>(); as well as unityInterfaces->Get<IUnityXRDisplayInterface>(); return NULL

    We have tried loading the plugin using both the callback UnityPluginLoad only and RegisterPlugin() like described here. I also tried calling the RegisterPlugin method using the RuntimeInitializeOnLoad(SubsystemRegistration) attribute but without luck.

    Is registering XR Subsystems not supported for WebGL?
     
    De-Panther likes this.
  2. marwi

    marwi

    Joined:
    Aug 13, 2014
    Posts:
    138
    Hello, gently bumping this