I am getting weird errors on start and on quit
I always get this one multiple times:
Assertion failed on expression: 'spriteIndex < tileSpriteArray.size()'
and this one a single time:
PPtr cast failed when dereferencing! Casting from MonoScript to Sprite!
both on start and quit. I managed to find out it is because of a tilemaps TileCollider2D because if I disable it it goes away but I need that collider and that just randomly started happening what can I do about that?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612205445im_/https://answers.unity.com/themes/thub/images/avi.jpg)