Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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:
    57
    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:
    57
    I completely forgot about this feature on assembly definitions. Thanks so much for the response!