How to render GUI last (after gizmos)

Ok this is kind of funny.

ezgif-3-c65e3f709797

See how it’s getting held up when it passes over the GUI.

Here is this fix. https://playground.babylonjs.com/#MELUXZ#3 What we want to do is turn off isPointerBlocker when the dragging starts and then turn it back on when the dragging ends. :joy:

On a side note if you want to for some reason still be able to pick the gizmo behind the GUI BUT still want behaviour of clicking on the rectangle check out this thread. 2D Layer isPointerBlocker exception? - #6 by msDestiny14

4 Likes