How to set 3DGUI behind 2DGUI

Hi there,
i’ve inserted some 3D button on my scene mixed with some 2D GUI elements. I’d like that 3D elements always displays behind the 2DGUI. How can i put the 3D button behinf the GUI? I’ve tryied with zIndex but with no effect.
This is my PG: https://playground.babylonjs.com/#A6TFXB#39
Any idea?

Hello I would recommend to use 2 scenes then. One for the 2d and one for the 3d and then you can decide which one to render first

Both gui (2D and 3D) are related to the same scene, so I think could be a problem. Is there any other way to do that?

yep: you can create 2 scenes and set the 2d in one and the 3d in the other

1 Like