how to set the order gui?
I tried using gui.set rendering order () but the text nodes piled into one.
gui.intro
gui.set rendering order (1)
gui.main
gui.set rendering order (0)
result
how to set the order gui?
I tried using gui.set rendering order () but the text nodes piled into one.
gui.intro
gui.set rendering order (1)
gui.main
gui.set rendering order (0)
result
There are two points to your question. First, the gui text nodes does not respond well to the gui render order. This is something we need to look over. The reason for this is that the text-rendering follow a different path than the other gui nodes. There is a hint about this in default.render_script, where you can find the lines:
render.draw(self.gui_pred)
render.draw(self.text_pred)
This doesn’t help you though, it’s just an explanation.
The other point is that if you do complete occluding (as seems to be the case in your example), it’s much better to disable the things you don’t need to be rendered. If you are targeting mobile devices, the fill-rate is a significant factor. However, in general, it’s good to be cautious about what is rendered to increase performance.