Gui.set_render_order [SOLVED]

How do you use this function?

I have two guis, one with gui.set_render_order(1) and the other gui.set_render_order(15) set in the init function.

My understanding is that the higher number is drawn on top. But when I switch the numbers around nothings changes, they are still drawn in the same order.

Two quick checks: are they using the same materials? Are the scripts actually attached?

1 Like

Yes and yes. The scripts are working other than the order.

Seems to be broken in 1.4.8. Created ticket: https://github.com/defold/defold/issues/7843

1 Like

I’ve just tested and it works fine:
Archive.zip (33.7 KB)

4 Likes

Lol, I created a test project which alternated two values in two different GUIs but forgot to actually use the value! :laughing: I shouldn’t test things late in the evening…

10 Likes

Neither should I… Made a mistake in my own code and it all works fine now. Sorry guys, my bad.

8 Likes