Changing object directly impacts tilemap

Not sure how to explain this problem so I have a video…

Basically, deleting or hiding ‘Enemy#1’ would seem to also hide my tilemap even though they should not be linked in any way and I cannot find a link between them, you can hide and unhide the tilemap independently of the enemy, and once the tilemap is hidden the enemy can be hidden and unhidden as intended too.

That is weird, which gives me a guess as to the issue. You may be relying on the render ordering of objects rather than an explicit render order. Unity doesn’t actually guarantee game objects will get processed in a particular order, so if render conditions change, this can cause unity to render objects in a different order causing what was before in the background to now be in the foreground.

Check to see if everything that could obscure your tilemap objects has a proper sort order different from the tilemap objects. If any of them share the same number, this could cause the issue.

It is ultimately just a guess though.

I have now had a play around with sorting layers and such and it seems to have fixed it for the time being. Still really confused, anyway, thanks for the help!