I’ve got in 3D scene some planes (buttons and pictures) and 3D text meshes. All are overlaid on top of each other but as camera moves around and closer or farer rendering order is changing and texts are randomly rendered in front or behind of picture planes and button planes are behaving similar. I made difference in distance to camera between objects as big as possible but still reasonable (unnoticed) values. Also did set far and near planes on camera to acceptable level. None of these helped. From what I read it is something to do with shaders?
These are shaders I’m using.
Picture prefab plane has material with shader Unlit/Transparent
Button prefab is made of 2 planes, Background and Foreground while Foreground is using Unlit/Transparent and background is using custom AlphaSelfIllum shader I downloaded from somewhere to get shader which is self illum with alpha and let define material colour.
Lastly the text is using standard 3D text shader, or I also tried this one http://wiki.unity3d.com/index.php?title=3DText
I have no knowledge of shaders in coding part, what should I do to make these elements to render always in correct order respecting the distance from camera when moving camera around the scene?
thanks for your help.