When I change a material to one created from sprites-default.

It spams
“materialIndex == 0
UnityEditor.DockArea:OnGUI()”

when I go over a element with that texture in the editor or if I run the game it spams it non stop.

I just created a new material - Sprites-Default and asigned it to the sprite renderer.

I recreated the project and reimported everything and it works fine now.

So maybe a bug. /Shrug