How to change render order of gui? (SOLVED)

I have 1 gameobject with 2 guis, I need GUI A goes in front of GUI B . I tried

gui.set_render_order(0)

in the 2 GUI scripts with diferent values but it doesnt work. Any help? thanks

Here’s a workaround I use:

Cut the gui you want on top to the clipboard and paste it back into the game object. This invisibly re-orders it to be drawn last (in front).

3 Likes

Using gui.set_render_order() should work. Which values do you use for the two guis?

2 Likes

0 and the other 1

Strange. Can you share the project? Either here as a zip or directly with me (bjorn.ritzl@king.com).

2 Likes

Sorry I think it was my error for no save changes or anything, I tried one more time, changing 0 to 1 and 1 to 0 and now works perfectly, thanks!!