Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question XR calls in non XR project

Discussion in 'AR' started by OMGTOASTER, May 10, 2024.

  1. OMGTOASTER

    OMGTOASTER

    Joined:
    Nov 3, 2014
    Posts:
    26
    Hello!

    I have a project that is not intended to use XR, however in the profiler I see calls being made to XR systems such as Initialization.XREarlyUpdate, FixedUpdate.XRFixedUpdate, XRLayout.GetActivePasses(), and lots of others. I have made sure all XR and VR packages are uninstalled as well as the XR Plugin Management. I even installed the plugin management to at one point to make sure everything is disabled, then uninstalled it again. The profiler still continues to show these XR calls. Is there something I'm missing to disable them or are they always present as part of the engine/profiler? Apologies if this is not the right place to ask this question.

    Thanks
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,219
    Did you uncheck 'initialize xr on startup' in the xr manager?
    Can you add a screenshot of the profiler?
    Did you update Unity already?
     
  3. makaka-org

    makaka-org

    Joined:
    Dec 1, 2013
    Posts:
    1,078
    Package Manager > Packages: Built-in > Try to disable VR, XR.
    These packages are not displayed in Packages: In Project.

    Did it help?
     
    DevDunk likes this.
  4. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,135
    There is an XR module that is built into the Editor. I wouldn't imagine that this is doing any significant amount of work in your project if your project doesn't use XR.
     
    makaka-org likes this.