# Gui\_new\_box\_node

**URL:** <https://forum.defold.com/t/gui-new-box-node/77300>\
**Category:** General\
**Created:** [June 21, 2024, 6:31pm UTC](https://forum.defold.com/t/gui-new-box-node/77300 "2024-06-21T18:31:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vampiloup](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/vampiloup/32/34713_2.png) [@Vampiloup](https://forum.defold.com/u/Vampiloup)\
**Post date:** [June 21, 2024, 6:31pm UTC](https://forum.defold.com/t/gui-new-box-node/77300/1 "2024-06-21T18:31:39Z")

</div>

Hi,

I want to create gui.nodes dynamicaly, very often, and destroy them as often.  
Basically, in a space 4X, each time I click on a star, a box open and give the name (and stuff like that) of each planet orbiting that star.  
Of course, the star have not the same number of planets (0 to 5).  
I choose to create a box node for each present planet (with child node for each of those nodes), each of them under the other.

Using gui.new\_box\_node.  
but new\_box\_node accept only a position and a size.

Question : How does I put that node IN an existing node (as a child node, probably) ?

edit : Spelling.

---

<div class="post-metadata">

**Author:** ![NaakkaDev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/naakkadev/32/34927_2.png) [@NaakkaDev](https://forum.defold.com/u/NaakkaDev)\
**Post date:** [June 21, 2024, 7:03pm UTC](https://forum.defold.com/t/gui-new-box-node/77300/2 "2024-06-21T19:03:06Z")

</div>

You might be looking for this: [API reference (GUI)](https://defold.com/ref/gui/#gui.set_parent:node-%5Bparent%5D-%5Bkeep_scene_transform%5D)

---

<div class="post-metadata">

**Author:** ![Vampiloup](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/vampiloup/32/34713_2.png) [@Vampiloup](https://forum.defold.com/u/Vampiloup)\
**Post date:** [June 21, 2024, 7:20pm UTC](https://forum.defold.com/t/gui-new-box-node/77300/3 "2024-06-21T19:20:59Z")

</div>

Oh, thank you.
