I updated my unity project and now the post proccesing package doesnt work anymore.

I updated my unity project and now the post proccesing package doesnt work anymore.

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Rendering.PostProcessing.AmbientOcclusion.IsEnabledAndSupported (UnityEngine.Rendering.PostProcessing.PostProcessRenderContext context) (at Assets/PostProcessing/Runtime/Effects/AmbientOcclusion.cs:179)
UnityEngine.Rendering.PostProcessing.PostProcessLayer.SetLegacyCameraFlags (UnityEngine.Rendering.PostProcessing.PostProcessRenderContext context) (at Assets/PostProcessing/Runtime/PostProcessLayer.cs:730)
UnityEngine.Rendering.PostProcessing.PostProcessLayer.SetupContext (UnityEngine.Rendering.PostProcessing.PostProcessRenderContext context) (at Assets/PostProcessing/Runtime/PostProcessLayer.cs:816)
UnityEngine.Rendering.PostProcessing.PostProcessLayer.BuildCommandBuffers () (at Assets/PostProcessing/Runtime/PostProcessLayer.cs:502)
UnityEngine.Rendering.PostProcessing.PostProcessLayer.OnPreCull () (at Assets/PostProcessing/Runtime/PostProcessLayer.cs:436)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

I found that resetting the Post Process Layer may do the trick.

This worked for me, upgrading from 2018.2 to 2019.4.

  1. I saved settings on the post process layer on the camera object(s).
  2. Reset the component in the top right icon, 3 dots.
  3. Applied respective setttings to each camera and it worked.
  4. Don’t forget to save scene if it works.