Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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

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

  1. marwi


    Aug 13, 2014

    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.

    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
    KirillKuzyk likes this.
  2. KirillKuzyk


    Nov 4, 2013