Hello, I just upgraded my project from 2020.3.32f1 to 2021.3.0f1. Entering Play Mode, I got a null reference exception in ShadowCasterGroup2D.CacheValues(). I looked at the code, and I suspect that a null check for m_ShadowCasters may be missing. Plus, the check is actually performed in the other functions of the class.
Null Reference Exceptions when upgrading to 2021.3 in ShadowCasterGroup2D
Code (CSharp):
- internal virtual void CacheValues()
- {
- for (int i = 0; i < m_ShadowCasters.Count; i++)
- m_ShadowCasters[i].CacheValues();
- }
- [...]
- public void...