# Bug or strange behavior HolographicButton and rendering groups

**URL:** <https://forum.babylonjs.com/t/bug-or-strange-behavior-holographicbutton-and-rendering-groups/7270>\
**Category:** Bugs\
**Created:** [November 28, 2019, 11:46am UTC](https://forum.babylonjs.com/t/bug-or-strange-behavior-holographicbutton-and-rendering-groups/7270 "2019-11-28T11:46:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blax](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/blax/32/37851_2.png) [@Blax](https://forum.babylonjs.com/u/Blax)\
**Post date:** [November 28, 2019, 11:46am UTC](https://forum.babylonjs.com/t/bug-or-strange-behavior-holographicbutton-and-rendering-groups/7270/1 "2019-11-28T11:46:54Z")

</div>

Hi!

[https://www.babylonjs-playground.com/#HB4C01#188](https://www.babylonjs-playground.com/#HB4C01#188)  
Please comment string 27 (with setting up renderingGroupId) and compare results.

Perhaps it is a bug or not? All buttons on layer 2 lose text (and icons).

Task - interface must be render on top render layer, but… i do mistake or it is a bug?

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [November 28, 2019, 12:59pm UTC](https://forum.babylonjs.com/t/bug-or-strange-behavior-holographicbutton-and-rendering-groups/7270/2 "2019-11-28T12:59:56Z")

</div>

this only changes the rendering group id of the main mesh but not all the meshes involved in a button which would be more like:

[https://www.babylonjs-playground.com/#HB4C01#189](https://www.babylonjs-playground.com/#HB4C01#189)

This uses private fields so not that good and I wonder if we should add the notion of rendering group to the gui 3d controls: @Deltakosh ?

---

<div class="post-metadata">

**Author:** ![Blax](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/blax/32/37851_2.png) [@Blax](https://forum.babylonjs.com/u/Blax)\
**Post date:** [November 28, 2019, 1:15pm UTC](https://forum.babylonjs.com/t/bug-or-strange-behavior-holographicbutton-and-rendering-groups/7270/3 "2019-11-28T13:15:55Z")

</div>

Thank you for answer, but, really we cant use private propertyes - is bad practice.  
3D interface “on-top” scene layers IMHO can be useful

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [November 28, 2019, 1:50pm UTC](https://forum.babylonjs.com/t/bug-or-strange-behavior-holographicbutton-and-rendering-groups/7270/4 "2019-11-28T13:50:42Z")

</div>

Exactly why I asked @Deltakosh before adding official support 🙂

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [November 28, 2019, 4:13pm UTC](https://forum.babylonjs.com/t/bug-or-strange-behavior-holographicbutton-and-rendering-groups/7270/5 "2019-11-28T16:13:05Z")

</div>

I’m all for that 🙂  
Fancy doing a PR (should be straightforward to add the property on the button itself)?

(Or just create an issue on the forum so I won’t forget to add it)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [November 28, 2019, 5:16pm UTC](https://forum.babylonjs.com/t/bug-or-strange-behavior-holographicbutton-and-rendering-groups/7270/6 "2019-11-28T17:16:42Z")

</div>

I will add it in my next nightlty in a couple of hours 🙂

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [November 28, 2019, 5:54pm UTC](https://forum.babylonjs.com/t/bug-or-strange-behavior-holographicbutton-and-rendering-groups/7270/7 "2019-11-28T17:54:56Z")

</div>

All good you can now use renderingGroupId directly on the holographicButton

---

<div class="post-metadata">

**Author:** ![Blax](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/blax/32/37851_2.png) [@Blax](https://forum.babylonjs.com/u/Blax)\
**Post date:** [November 29, 2019, 8:01am UTC](https://forum.babylonjs.com/t/bug-or-strange-behavior-holographicbutton-and-rendering-groups/7270/8 "2019-11-29T08:01:12Z")

</div>

Thank you!!!
