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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Bug 2022.1.0b2 Post Processing requires XR

Discussion in '2022.1 Beta' started by adamgolden, Jan 2, 2022.

  1. adamgolden


    Jun 17, 2019
    Updating to 0b2 throws Post Processing package exceptions about XRSettings.

    Solution 1: Add the XR and VR packages to your project (in Package Manager, "Packages: Built-in").
    Solution 2: Right-click "Packages\Post Processing" (in Project window), select "Show in Explorer" to find the location. Copy the /com.unity.postprocessing@3.2.0 folder to a new location outside the project hierarchy. Edit \PostProcessing\Runtime\PostProcessLayer.cs file so the XRSettings dependency is commented out, like so:
    Code (CSharp):
    1.                             /*
    2.                             if (XRSettings.stereoRenderingMode == XRSettings.StereoRenderingMode.MultiPass)
    3.                                 m_Camera.projectionMatrix = m_Camera.GetStereoProjectionMatrix(Camera.StereoscopicEye.Left);
    4.                             */
    Then in Package Manager click the + button, Add Packages, Add From Disk and browse to the modified package.json.

    An official fix would be appreciated, since solution 1 adds unnecessary bloat (for non-XR projects), and solution 2 because the same fix would be required every time you update Post Processing package to a newer version.
    mahdi_jeddi likes this.
  2. mahdi_jeddi


    Jul 18, 2016
    Yes, this is really annoying. I usually disable XR and VR packages, but now have to re-enable them.
  3. LeonhardP


    Unity Technologies

    Jul 4, 2016
    mahdi_jeddi and adamgolden like this.