Use Depth Buffer In Tiled2Unity

I am making an isometric game in Unity, and using the free Tiled2Unity importer to bring .tmx files into my project. In order to get the draw order correct between characters and trees in my environment, I have been trying to figure out how to use the depth buffer.

Tiled2Unity has a check box that says “Use Depth Buffer”, however it is not clear to me what depth values it assigns to which tiles. I can get the draw ordering to work right, I just can’t figure out how to write a function to adjust my characters’ z-depth as they move to work with the imported map.

Any help is much appreciated!

Tiled2Unity comes with a script called SpriteDepthInMap that you can use to set the position of your sprites as they move around the world.