# Issue loading from snippet server

**URL:** <https://forum.babylonjs.com/t/issue-loading-from-snippet-server/30795>\
**Category:** Questions\
**Created:** [May 27, 2022, 7:43pm UTC](https://forum.babylonjs.com/t/issue-loading-from-snippet-server/30795 "2022-05-27T19:43:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bernard\_Stein](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bernard_stein/32/1401_2.png) [@Bernard\_Stein](https://forum.babylonjs.com/u/Bernard_Stein)\
**Post date:** [May 27, 2022, 7:43pm UTC](https://forum.babylonjs.com/t/issue-loading-from-snippet-server/30795/1 "2022-05-27T19:43:51Z")

</div>

I am having trouble loading GUI from the snippet server when I use the ID: MMWSUI#5 the GUI works, but in the GUI editor after loading the same GUI by snippet ID: MMWSUI#5 and then saving it to get a new ID: MMWSUI#30, it doesn’t work in the playground. Is it because it takes time for the snippets to load onto the server? How could I load from a .json file on my PC instead if not from a snippet?

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

---

<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:** [May 27, 2022, 8:59pm UTC](https://forum.babylonjs.com/t/issue-loading-from-snippet-server/30795/2 "2022-05-27T20:59:50Z")

</div>

When I replace your code with a reference to the snippet #30, I’ve got an error but only because of this line:

```auto
let colorPickerButton = advancedTexture.getControlByName("ColorPickerButton");

```

There is no control named ColorPickerButton in your new snippet

---

<div class="post-metadata">

**Author:** ![Bernard\_Stein](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bernard_stein/32/1401_2.png) [@Bernard\_Stein](https://forum.babylonjs.com/u/Bernard_Stein)\
**Post date:** [May 27, 2022, 9:25pm UTC](https://forum.babylonjs.com/t/issue-loading-from-snippet-server/30795/3 "2022-05-27T21:25:27Z")

</div>

Ok, thanks but I can’t seem to find the control ColorPickerButton when I load the snippet #5 in the editor either.

---

<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:** [May 27, 2022, 9:26pm UTC](https://forum.babylonjs.com/t/issue-loading-from-snippet-server/30795/4 "2022-05-27T21:26:50Z")

</div>

It should be there though as the code finds it 🙂

---

<div class="post-metadata">

**Author:** ![Bernard\_Stein](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bernard_stein/32/1401_2.png) [@Bernard\_Stein](https://forum.babylonjs.com/u/Bernard_Stein)\
**Post date:** [May 27, 2022, 10:38pm UTC](https://forum.babylonjs.com/t/issue-loading-from-snippet-server/30795/5 "2022-05-27T22:38:16Z")

</div>

When “loading from snippets” in the online GUI editor it deletes the “ColorPickerButton”, you can see it for a second before it disappears. Is it because the button is outside the “BackgroundBox” of snippet #5? I have been unsuccessful in adding a “ColorPickerButton” back in, after trying to load again after saving it keeps appearing briefly and then disappearing.

But if I type the snippet in the URL of the GUI editor directly and don’t use load from snippet it doesn’t delete the buttons and I can see the one in snippet #5 and the one I tried adding back in in snippet #37

I got it working now but I had to recopy from snippet #5 and had a hard time remaking the button, even though I gave it the same name it didn’t work.
