Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Null Reference Exceptions when upgrading to 2021.3 in ShadowCasterGroup2D

$
0
0
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.

Code (CSharp):
  1. internal virtual void CacheValues()
  2. {
  3.     for (int i = 0; i < m_ShadowCasters.Count; i++)
  4.         m_ShadowCasters[i].CacheValues();
  5.    
  6. }
  7.  
  8. [...]
  9.  
  10. public void...
Null Reference Exceptions when upgrading to 2021.3 in ShadowCasterGroup2D

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>