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.
  2. Dismiss Notice

Feature Request Scripting define set for XR Plugin?

Discussion in 'VR' started by FromTheFuture, Oct 8, 2020.

  1. FromTheFuture

    FromTheFuture

    Joined:
    Jul 25, 2012
    Posts:
    45
    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:

    Code (CSharp):
    1. using UnityEditor.XR.Management;
    2. using UnityEngine.XR.Management;
    3. using UnityEditor.XR.Management.Metadata;
    4. using Unity.XR.Oculus;
    We can work around it, but it would be really handy if that system already defined something.

    Thanks!
     
  2. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    FromTheFuture likes this.
  3. FromTheFuture

    FromTheFuture

    Joined:
    Jul 25, 2012
    Posts:
    45
    I completely forgot about this feature on assembly definitions. Thanks so much for the response!