I assure you that more code of the project never changed.
The question actually is, why the order of the GUI objects in the main.collection alter the final result? I clearly pointed out what the material are .gui files and specify them in order in .render script
EDIT: So, i found a solution: gui.set_render_order
But, now i have question. why can’t I adjust the drawing order in render script?
Do I understand correctly that the material for the gui is to be set ONLY drawing rules?
It does not matter in what order we will draw the gui in the render script? Am I right?
The order in which gui components are listed in the outline should never be taken as an indication of actual render order. You can use gui.set_render_order() to decide in which order gui components are rendered. You should also be able to assign different materials and control when they are rendered in your custom render script so I’m not really sure why you’re not getting it to function properly. Could you please post your full render script?
So, it seems you are in fact only using 1 .material file: gui.material?
What I would try to do is to actually have two .material files: gui.material, and shop.material and point to them in your .gui files. In those materials, you would set one tag in each material (“gui” / “shop”)