# Have 3D GUI always on top

**URL:** <https://forum.babylonjs.com/t/have-3d-gui-always-on-top/28194>\
**Category:** Questions\
**Tags:** gui\
**Created:** [March 7, 2022, 7:01am UTC](https://forum.babylonjs.com/t/have-3d-gui-always-on-top/28194 "2022-03-07T07:01:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jetavut](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@jetavut](https://forum.babylonjs.com/u/jetavut)\
**Post date:** [March 7, 2022, 7:01am UTC](https://forum.babylonjs.com/t/have-3d-gui-always-on-top/28194/1 "2022-03-07T07:01:31Z")

</div>

I’m trying to have a functional 3D GUI that is always rendered on top of the other meshes.

I’ve succeeded by modifying the `renderingGroupId` of the buttons.

However, for the click detection workaround I’ve tried the solution suggested [in this thread](https://forum.babylonjs.com/t/renderinggroupid-and-click-detection/28150/2) but `scene.multiPick` doesn’t seems to work for 3D GUI elements…

Is there a way to have a 3D GUI that is always rendered on top and that can react to click events?

---

<div class="post-metadata">

**Author:** ![JCPalmer](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/jcpalmer/32/42_2.png) [@JCPalmer](https://forum.babylonjs.com/u/JCPalmer)\
**Post date:** [March 7, 2022, 1:39pm UTC](https://forum.babylonjs.com/t/have-3d-gui-always-on-top/28194/2 "2022-03-07T13:39:00Z")

</div>

RenderingGroupID & utility layers affect what order meshes painted, thus ways to ensure they always shown. Getting chosen from a picking is related to where a mesh is. Not sure there is an easy solution, except to use a 2D GUI. I have a 3D GUI outside of the framework. I do not want to this, but if I did, I would try moving the button meshes.

---

<div class="post-metadata">

**Author:** ![musk](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/musk/32/17156_2.png) [@musk](https://forum.babylonjs.com/u/musk)\
**Post date:** [March 7, 2022, 3:02pm UTC](https://forum.babylonjs.com/t/have-3d-gui-always-on-top/28194/3 "2022-03-07T15:02:23Z")

</div>

If you can set isPickble = false of all meshes in front of your 3D GUI, it will work.

> **[Babylon.js Playground](https://www.babylonjs-playground.com/#P3XL66%231)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [April 6, 2022, 1:44pm UTC](https://forum.babylonjs.com/t/have-3d-gui-always-on-top/28194/4 "2022-04-06T13:44:09Z")

</div>

Hello @jetavut just checking in, was your question answered?

---

<div class="post-metadata">

**Author:** ![jetavut](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@jetavut](https://forum.babylonjs.com/u/jetavut)\
**Post date:** [April 6, 2022, 11:37pm UTC](https://forum.babylonjs.com/t/have-3d-gui-always-on-top/28194/5 "2022-04-06T23:37:33Z")

</div>

Yes, I have marked an answer as solution.
