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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

[Fixed] Best way to build XR and non XR project with XRManagement and cloud builds

Discussion in 'Unity Build Automation' started by demonixis, Apr 24, 2020.

  1. demonixis

    demonixis

    Joined:
    Aug 20, 2013
    Posts:
    185
    Hello,

    I'm working on an project that works in VR and Flat. it uses the new XRManagement (Oculus and Windows MR). My first problem is that XR is enabled by default, I would like to know if it's possible to make a pre build script that disable XRManagement. I can do that on a separate branch, this is maybe the recommanded way.

    Any suggestions? Thanks!

    Edit: It's ok now, I've a prebuild method that do the job
     
    Last edited: Apr 24, 2020
  2. acardon13

    acardon13

    Joined:
    Apr 24, 2020
    Posts:
    2
    Hello demonixis

    I have the same problem as you. Would it be possible to share your solution ?
    Are you using the "UnityEngine.XR.Management.XRGeneralSettings.Instance.Manager.DeinitializeLoader();" with a build script ?
    I couldn't succed to make this work !

    Many thanks for your help
     
  3. demonixis

    demonixis

    Joined:
    Aug 20, 2013
    Posts:
    185
    Replied in PM, but it fact it's not fixed at all :/