Polygon layering?

Can you assign a drawing order for layers in unity?
i have a custom polygon made in 3ds and when i place it in unity it start fighting with the terrain for wich one draws over the other :?

drawing order is controller through the corresponding tag in the shaderlab material / the renderqueue property of the material

Ok, I read out all the Unity scrpting reference I’ve tried with Material.renderQueue and no change, tried changing shader tag to “Geometry + 1” and no change… I still need some help over here, please? :slight_smile:

How did you use Material.renderQueue? I would think that would do it. Did you make sure to use positive numbers? I haven’t had a reason to use it yet but the manual says to make sure to use positive numbers for it to function correctly.

Just thinking out loud, I don’t have any other suggestion than the one already listed and tried.

Thx for helping. Well i found that the queue was actually working it’s just that no matter the queue order my polygon flickers with the terrain mesh. So i had to rise it a little bit. Not what I wanted, but kinda solved it.

As a note, the Renderqueue does not clear the depth buffer, and so Depth fighting will still occur.

Two ways I could think of fixing it would be to offset one off the other by a small amount, so one is definitly in front of the other, or use http://www.unifycommunity.com/wiki/index.php?title=DepthMask on a duplicate object to create a sort of Z offset on your polygon.