Search Unity

Feedback XR SDK missing documentation | Native XRInputSystem, XRMeshSubsystem, XRDisplaySubsystem

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

  1. marwi

    marwi

    Joined:
    Aug 13, 2014
    Posts:
    138
    Hello,

    when creating a custom XR plugin it took me a while to figure out that the package.json:keywords must contain the "xreditorsubsystem" tag for it to be discovered. I didnt see this mentioned in the docs anywhere and its the first time I find keywords beeing used as feature toggle.

    STRP:
    1) open xr input sample project
    2) create a script with SubsystemManager.GetSubsystemDescriptors(inputDescs); and ensure at least 1 XR InputSubsystem is found (input0 in the samples)
    3) close the editor and remove the "xreditorsubsystem" in the "XR SDK Input Sample" package.json
    4) re-open the project - note that the subsystem is not discovered anymore

    It would be nice to add this to the docs :) (obviously the keyword is present in the sample packages so it's confusing that things dont work or stop working when you start building a plugin in a new or your own packages that dont have that keyword)
     
    Last edited: Sep 21, 2020
    KyryloKuzyk likes this.
  2. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,143