- Home /
Post Processing - NullReferenceException
Good day everyone!
I've ran into a bit of a problem with the assets I'm using.
When I first started using these assets earlier today, I had no problem with them. However, due to several reasons, I had to redownload Unity Hub. The Unity version I'm using is 2020.1.17f1.
Now, when I open the project and run it, I'm faced with this error:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Rendering.PostProcessing.AmbientOcclusion.IsEnabledAndSupported (UnityEngine.Rendering.PostProcessing.PostProcessRenderContext context) (at Library/PackageCache/com.unity.postprocessing@2.3.0/PostProcessing/Runtime/Effects/AmbientOcclusion.cs:182)
UnityEngine.Rendering.PostProcessing.PostProcessLayer.SetLegacyCameraFlags (UnityEngine.Rendering.PostProcessing.PostProcessRenderContext context) (at Library/PackageCache/com.unity.postprocessing@2.3.0/PostProcessing/Runtime/PostProcessLayer.cs:771)
UnityEngine.Rendering.PostProcessing.PostProcessLayer.SetupContext (UnityEngine.Rendering.PostProcessing.PostProcessRenderContext context) (at Library/PackageCache/com.unity.postprocessing@2.3.0/PostProcessing/Runtime/PostProcessLayer.cs:863)
UnityEngine.Rendering.PostProcessing.PostProcessLayer.BuildCommandBuffers () (at Library/PackageCache/com.unity.postprocessing@2.3.0/PostProcessing/Runtime/PostProcessLayer.cs:533)
UnityEngine.Rendering.PostProcessing.PostProcessLayer.OnPreCull () (at Library/PackageCache/com.unity.postprocessing@2.3.0/PostProcessing/Runtime/PostProcessLayer.cs:462)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
I'm not experience in Post Processing at all so I really don't know how I can fix this issue, so I'd really appreciate any help!
Answer by Nistroy · Feb 16, 2021 at 04:46 PM
Have you ever tried to double click on the problem? @nursedayuksel
Hello, yes I have. It redirects me to two scripts where the problems lie, however these scripts came together with the assets, and as I originally said in my post, I'm not experienced with Post Processing in the slightest, so I really don't know how to fix the problem. I could attach the code where the problem is occurring.
Your answer
Follow this Question
Related Questions
I can't build project on android with Post Processing pack 1 Answer
How to check integrity of Assets? 0 Answers
Why is unity deleted my assets? 0 Answers
unity 3.4 having trouble with islanddemo 0 Answers