XR SDK missing documentation | Native XRInputSystem, XRMeshSubsystem, XRDisplaySubsystem

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 :slight_smile: (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)

1 Like

I wish I’d found this thread earlier. Here is my response but in a different thread that is more optimized for search:
https://forum.unity.com/threads/unity-xr-sdk-in-editor-native-xrinputsystem-xrmeshsubsystem-xrdisplaysubsystem-in-the-editor.1264205/