Scripting define set for XR Plugin?

Hi,

Does XR Plugin Management set any scripting defines when it is included in a project?

We have some editor scripts in a shared library used across projects, and get compile errors for those projects that are not using the new XR Plugin Management because they include things like:

using UnityEditor.XR.Management;
using UnityEngine.XR.Management;
using UnityEditor.XR.Management.Metadata;
using Unity.XR.Oculus;

We can work around it, but it would be really handy if that system already defined something.

Thanks!

No but you can use a standard version define to detect either if you have management installed or not. See Unity - Manual: Assembly definitions.

1 Like

I completely forgot about this feature on assembly definitions. Thanks so much for the response!