# Delete gameobject, remove a Gui child? (SOLVED)

**URL:** <https://forum.defold.com/t/delete-gameobject-remove-a-gui-child-solved/9076>\
**Category:** Questions\
**Created:** [June 9, 2017, 5:34pm UTC](https://forum.defold.com/t/delete-gameobject-remove-a-gui-child-solved/9076 "2017-06-09T17:34:06Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![qkygames](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/q/6de8d8/32.png) [@qkygames](https://forum.defold.com/u/qkygames)\
**Post date:** [June 9, 2017, 5:34pm UTC](https://forum.defold.com/t/delete-gameobject-remove-a-gui-child-solved/9076/1 "2017-06-09T17:34:06Z")

</div>

I have a gui component in my object enemie, when delete enemie, the gui component is deleted too?

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [June 9, 2017, 8:08pm UTC](https://forum.defold.com/t/delete-gameobject-remove-a-gui-child-solved/9076/2 "2017-06-09T20:08:06Z")

</div>

Yes, all components on a game object will be removed when the game object is deleted.

---

<div class="post-metadata">

**Author:** ![stephenkalisch](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/stephenkalisch/32/4131_2.png) [@stephenkalisch](https://forum.defold.com/u/stephenkalisch)\
**Post date:** [June 9, 2017, 8:37pm UTC](https://forum.defold.com/t/delete-gameobject-remove-a-gui-child-solved/9076/3 "2017-06-09T20:37:38Z")

</div>

Is there any way - in editor or scripting - to see all existing entities (go, gui etc)???

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [June 9, 2017, 8:54pm UTC](https://forum.defold.com/t/delete-gameobject-remove-a-gui-child-solved/9076/4 "2017-06-09T20:54:53Z")

</div>

No, not really. The profiler will show you the number of active instances, but that’s about it.

---

<div class="post-metadata">

**Author:** ![stephenkalisch](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/stephenkalisch/32/4131_2.png) [@stephenkalisch](https://forum.defold.com/u/stephenkalisch)\
**Post date:** [June 9, 2017, 9:13pm UTC](https://forum.defold.com/t/delete-gameobject-remove-a-gui-child-solved/9076/5 "2017-06-09T21:13:56Z")

</div>

IMO a missing feature in the editor. Very important to have a overview while running f.e. to see all active elements. Otherwise maybe lots of trash is in memory.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [June 10, 2017, 6:22am UTC](https://forum.defold.com/t/delete-gameobject-remove-a-gui-child-solved/9076/6 "2017-06-10T06:22:20Z")

</div>

Well, I guess you have a point there. There’s probably room to improve on our profiling tools further.

---

<div class="post-metadata">

**Author:** ![stephenkalisch](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/stephenkalisch/32/4131_2.png) [@stephenkalisch](https://forum.defold.com/u/stephenkalisch)\
**Post date:** [June 10, 2017, 7:29am UTC](https://forum.defold.com/t/delete-gameobject-remove-a-gui-child-solved/9076/7 "2017-06-10T07:29:56Z")

</div>

I dont line comparing to unity etc.

But I know in Unity there is a hierachy (tree) where you can see all entities incl the spawned/cloned ones via script.

There you can see all entities as a tree with childs etc. Very helpfull I think to have an overview. Also good for debugging or if a game starts laging. Otherwise you maybe never find. Also nice would be if there would be the memory usage for each. Very helpful IMO.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [June 10, 2017, 7:32am UTC](https://forum.defold.com/t/delete-gameobject-remove-a-gui-child-solved/9076/8 "2017-06-10T07:32:58Z")

</div>

> [@stephenkalisch](#):
>
> There you can see all entities as a tree with childs etc. Very helpfull I think to have an overview. Also good for debugging or if a game starts laging. Otherwise you maybe never find. Also nice would be if there would be the memory usage for each. Very helpful IMO

Good ideas for future improvements of the profiler perhaps? @Mathias_Westerdahl, @sven.

---

<div class="post-metadata">

**Author:** ![stephenkalisch](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/stephenkalisch/32/4131_2.png) [@stephenkalisch](https://forum.defold.com/u/stephenkalisch)\
**Post date:** [June 10, 2017, 7:34am UTC](https://forum.defold.com/t/delete-gameobject-remove-a-gui-child-solved/9076/9 "2017-06-10T07:34:48Z")

</div>

On a powerful PC this maybe just a peanut, but specially for mobile devices or HTML5 this could be a good tool for optimization and clear work 🙂

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [June 12, 2017, 7:49am UTC](https://forum.defold.com/t/delete-gameobject-remove-a-gui-child-solved/9076/10 "2017-06-12T07:49:48Z")

</div>

Yes, I agree, it’s a good tool to see what’s loaded at any time. I’ve added ticket DEF-2754 for this.
