NullReferenceException with Volume
Posted: Wed Jun 09, 2021 5:47 am
I added global volume to my scene for some post-processing bloom, but now I am getting NullReferenceException errors from ES3 from time to time because of that. It doesn't break the scene, but it would still be nice to somehow fix it. Ideas? I am using Unity 2020.3.5f1 with URP (2D Renderer). Here's the error:
Code: Select all
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Rendering.VolumeComponent.GetHashCode () (at Library/PackageCache/com.unity.render-pipelines.core@10.4.0/Runtime/Volume/VolumeComponent.cs:215)
System.Collections.Generic.ObjectEqualityComparer`1[T].GetHashCode (T obj) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <695d1cc93cca45069c528c15c9fdd749>:0)
ES3Internal.ES3SerializableDictionary`2[TKey,TVal].OnAfterDeserialize () (at Assets/Plugins/Easy Save 3/Scripts/ES3SerializableDictionary.cs:42)