Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity wants to learn about your experiences working on a Unity project today. We'd like to hear from you via this survey.
    Dismiss Notice
  3. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  4. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  5. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Feedback XR SDK missing documentation

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

  1. marwi

    marwi

    Joined:
    Aug 13, 2014
    Posts:
    121
    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
    KirillKuzyk likes this.
unityunity