I’m creating a Unity project with a tilemap. On this tilemap I place objects via script, which sometimes extend over several tiles. Although it is a 2d game, I use a 3D grid to place tiles on top of each other on the same tilemap.
Here I have the problem that one tile is displayed before the other, even though it is behind it.
Example:
Position of the bottom tile of the latern: (0,0,0)
Position of the middle tile of the latern: (0,1,-1)
Position of the top tile of the latern: (0,2,-2)
Position of the left brown tile: (0,1,0)
Position of the right brown tile: (1,1,0)
Position of the camera: (0,0,-10)
This is what the camera sees:
Camera View
This is the scene view:
Scene View
Here my Settings:
Grid Settings
Tilemap Settings
Can someone help me please? 😀
(I have the version 2021.3.0f1)
I would expect it to display the lantern completely above the brown tile. I have no idea why that could be…
Simon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.