Support Forum

Puzzling Draw Order

Hi
I create a 3D cube in the scene and then I use Draw.ingame.SolidBox() in Update() to draw a box, but it seems that the box is transparency and always draw in front of the cube even it is farthen from the camera.
So how should I do to make the box opaque and able to be drawn behind the cube when it is farther from the camera?
By the way, everything else is perfect. Great product!

Oh, I guess I’ve solved the problem. I’ve found a material “Aline_surface_mat” and then I set “Main Color” to (1, 1, 1, 1) and set “Fade Color” to (0, 0, 0, 0).

Yes, by default, gizmos show up with reduced opacity behind other objects. I’m considering adding a preference panel to allow users to adjust this without changing the material manually.