# GUI Editor bug from naming/id on duplicates?

**URL:** <https://forum.babylonjs.com/t/gui-editor-bug-from-naming-id-on-duplicates/35781>\
**Category:** Bugs\
**Tags:** gui\
**Created:** [November 17, 2022, 2:55pm UTC](https://forum.babylonjs.com/t/gui-editor-bug-from-naming-id-on-duplicates/35781 "2022-11-17T14:55:26Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [November 17, 2022, 2:55pm UTC](https://forum.babylonjs.com/t/gui-editor-bug-from-naming-id-on-duplicates/35781/1 "2022-11-17T14:55:26Z")

</div>

Dears,  
I was setting up a PG to check on the best option to use navMeshes for stairs colliders.  
Thought I would quickly use the Editor to make a simple interface.

Found that from some (fairly) recent changes, there are now issues accessing duplicate controls by name.  
I noticed that when you duplicate a control, it now comes with a fancy name at first. Because these are now to be unique, right? and that’s fine. So, I changed the name, but next thing I noticed is that I’m unable to access this duplicate control by its name. Also, even on the first control created, when reloading the PG, I eventually get a not found error through its uniqueID (see SS and PG below).  
This doesn’t happen with previous version snippets from the Editor. So it must come from the new way duplicates/copies are generated/written.

 ![Capture d’écran 2022-11-17 à 15.46.46](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/1/6/16ae8f663133ca968bd58fe36ca4fc47ffcef9a9.jpeg)

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

---

<div class="post-metadata">

**Author:** ![bjsuser](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bjsuser/32/25577_2.png) [@bjsuser](https://forum.babylonjs.com/u/bjsuser)\
**Post date:** [November 17, 2022, 4:09pm UTC](https://forum.babylonjs.com/t/gui-editor-bug-from-naming-id-on-duplicates/35781/2 "2022-11-17T16:09:30Z")

</div>

I see you used an .obj instead of a .glb. I am learning and wondering was it the software you use that helped you decide on the choice, or for another reason?

Thanks.

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [November 17, 2022, 4:28pm UTC](https://forum.babylonjs.com/t/gui-editor-bug-from-naming-id-on-duplicates/35781/3 "2022-11-17T16:28:22Z")

</div>

Oh, yes. I used c4d. The choice is ‘emotional’ if I can say so 😉 😉. For many years and among all, cinema4D has been my favorite. However, I think I’m currently making my last personal project using c4d and the old (like me 😉 🧓) obj format 🥲. Too many constraints, too heavy, …just outdated. I don’t have the same level of skills in Blender yet. I also don’t like the interface and approach as much but I guess it is today the best choice for modelling for BJS (and webGL in general). Another time, another era ⏳

---

<div class="post-metadata">

**Author:** ![bjsuser](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bjsuser/32/25577_2.png) [@bjsuser](https://forum.babylonjs.com/u/bjsuser)\
**Post date:** [November 17, 2022, 4:30pm UTC](https://forum.babylonjs.com/t/gui-editor-bug-from-naming-id-on-duplicates/35781/4 "2022-11-17T16:30:44Z")

</div>

Thanks @mawa. 🤝

---

<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 17, 2022, 8:14pm UTC](https://forum.babylonjs.com/t/gui-editor-bug-from-naming-id-on-duplicates/35781/5 "2022-11-17T20:14:40Z")

</div>

@mawa I can not seem to be able to repro with your pg ☹

Can you share the broken version ?

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [November 17, 2022, 8:28pm UTC](https://forum.babylonjs.com/t/gui-editor-bug-from-naming-id-on-duplicates/35781/6 "2022-11-17T20:28:17Z")

</div>

It is not easy to switch from C4D to Blender, the latter often seems to be counterintuitive for user (even despite the fact that Blender became much better in 3.xx version).  
But why do you need to export to OBJ? Cinema4D has very good GLTF exporter.

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [November 18, 2022, 7:44am UTC](https://forum.babylonjs.com/t/gui-editor-bug-from-naming-id-on-duplicates/35781/7 "2022-11-18T07:44:44Z")

</div>

Yes, but for that I would need to acquire the new version license 😉 🤑  
I’m a bit short on resources for that as of just now 🥲

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [November 18, 2022, 7:47am UTC](https://forum.babylonjs.com/t/gui-editor-bug-from-naming-id-on-duplicates/35781/8 "2022-11-18T07:47:48Z")

</div>

Did you try uncomment lines #176 and #177? These are copied controls and I checked the name multiple times. Whenever I try accessing these (as opposed to the ‘original’ controls) I get this error (see SS below)

 ![Capture d’écran 2022-11-18 à 08.45.24](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/0/2/028ad0626af7a27cbd67a735a1eff10bb7445e37.jpeg)

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [November 18, 2022, 9:55am UTC](https://forum.babylonjs.com/t/gui-editor-bug-from-naming-id-on-duplicates/35781/9 "2022-11-18T09:55:18Z")

</div>

Either I was very tired or something has changed from yesterday or there was an issue from the browser cache. I am certain that yesterday when copying a control, the name changed to a string (looked like a JSON). This morning, I tried again and the name of the duplicate does not change (but also doesn’t increment like I believe was said it would do??!) Anyways, I can now access my controls (again?). Something, just something must have happened. 🤔 😵

---

<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 18, 2022, 5:43pm UTC](https://forum.babylonjs.com/t/gui-editor-bug-from-naming-id-on-duplicates/35781/10 "2022-11-18T17:43:19Z")

</div>

So if I understand well, there are no issues anymore @mawa ???

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [November 18, 2022, 5:48pm UTC](https://forum.babylonjs.com/t/gui-editor-bug-from-naming-id-on-duplicates/35781/11 "2022-11-18T17:48:07Z")

</div>

Huh, no. As weird as it is, there aren’t issues on my side anymore. Except I have been told by the GUI team that the copied controls would have a name that should increment and here it still doesn’t. But that might just come later or has been rethought. But, no, I’m fine. No issues as of just now 😅 (Although the user is always a potential issue 😁 😉)
