# How to properly setup child/parent relationship in editor via functions ? 

**URL:** <https://forums.unrealengine.com/t/how-to-properly-setup-child-parent-relationship-in-editor-via-functions/2699053>\
**Category:** Blueprint\
**Tags:** child-actors, unreal-engine, editor, question\
**Created:** [February 11, 2026, 3:54pm UTC](https://forums.unrealengine.com/t/how-to-properly-setup-child-parent-relationship-in-editor-via-functions/2699053 "2026-02-11T15:54:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joykayu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joykayu](https://forums.unrealengine.com/u/Joykayu)\
**Post date:** [February 11, 2026, 3:54pm UTC](https://forums.unrealengine.com/t/how-to-properly-setup-child-parent-relationship-in-editor-via-functions/2699053/1 "2026-02-11T15:54:03Z")

</div>

I’m quite new to Unreal and have trouble with the child/parent definition.

What I’m trying to do :

- I have a parent actor, its purpose is to hold the utility functions I need and to be a parent of new actors.

- This parent actor has a function that is callable in editor. This function uses the SpawnActor node to create some new actors from a given BP.

- This function also sets the spawned actors to bet children of the parent actor via Attach Actor to Actor.

The problem that I have is, when I call the function in editor, everything works fine, the children are correctly bound to the parent but as long as I save the project, they no longer are children of the parent actor.

Before save :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/f/3af1c868d21e3fd952277932f8df57e986e7ac02.png)

After save :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/5/9250c282c27ffbe26765f4559c4acc7093132d4d.png)

Note that they no longer have any parent, they go back to the root of my level.

I have tried many things, in particular trying to modify the parent (as it doesn’t appear in the unsaved actors). I have also tried to set the children as children of a scene in the parent actor via Attach Actor to Component. I have also tried to modify the parent actor to be a Editor Utility Blueprint but it didn’t change anything (this is the version shown on the screenshots).

Do you have any idea of what is happening ? Is this a correct way to setup this kind of child/parent relationship or should I use another method ?

I would like to understand what’s going wrong rrather than just a dirty fix, as I would like to use this kind of relationships for other actors in my game.

Thank you for your help,

---

<div class="post-metadata">

**Author:** ![Vahab](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vahab/32/1148756_2.png) [@Vahab](https://forums.unrealengine.com/u/Vahab)\
**Post date:** [February 12, 2026, 8:42pm UTC](https://forums.unrealengine.com/t/how-to-properly-setup-child-parent-relationship-in-editor-via-functions/2699053/2 "2026-02-12T20:42:08Z")

</div>

I wonder if you have a construction script or another script that resets the parent of those child actors? Could you share a screenshot of your Blueprint? It would be easier to identify the issue.

---

<div class="post-metadata">

**Author:** ![Joykayu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joykayu](https://forums.unrealengine.com/u/Joykayu)\
**Post date:** [February 12, 2026, 11:38pm UTC](https://forums.unrealengine.com/t/how-to-properly-setup-child-parent-relationship-in-editor-via-functions/2699053/3 "2026-02-12T23:38:06Z")

</div>

The construction scripts of both actors are empty.

Here is the function that I call to spawn the children :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/4/2445f8afff16bec7b7095815db341c66e364eaf4.png)

Basically it’s two for loops for the two axis of the grid, I call SpawnActor at a given location. Then I store the children in an array. The, after the for loop, I iterate over the array to attach all the spawned actors.

Once again, everything works fine until I save my project. Also if I save by quitting the project, it seems to be saved properly.

---

<div class="post-metadata">

**Author:** ![Vahab](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vahab/32/1148756_2.png) [@Vahab](https://forums.unrealengine.com/u/Vahab)\
**Post date:** [February 15, 2026, 3:31pm UTC](https://forums.unrealengine.com/t/how-to-properly-setup-child-parent-relationship-in-editor-via-functions/2699053/4 "2026-02-15T15:31:09Z")

</div>

I understand the issue you’re experiencing. It’s not related to your blueprint; rather, it’s related to the `OneFilePerActor` feature in Unreal. This feature stores your actor data separately instead of directly in the map file. To confirm this, please create a basic level and try again.

Don’t worry if you lose your hierarchy. Just reopen your map, and everything will work properly.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/f/34f4561a2a8f92cc9c63b42029547403870948f8.png)

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [February 16, 2026, 12:05am UTC](https://forums.unrealengine.com/t/how-to-properly-setup-child-parent-relationship-in-editor-via-functions/2699053/5 "2026-02-16T00:05:59Z")

</div>

You can also use ChildActorComponent to spawn them as child, that way child actors always belong to component and component will belong to parent and it should always load the same.

---

<div class="post-metadata">

**Author:** ![Joykayu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joykayu](https://forums.unrealengine.com/u/Joykayu)\
**Post date:** [February 16, 2026, 10:35am UTC](https://forums.unrealengine.com/t/how-to-properly-setup-child-parent-relationship-in-editor-via-functions/2699053/6 "2026-02-16T10:35:54Z")

</div>

Creating a new basic map worked ! Thanks a lot for your help 😁

Just to be sure, I saw on the documentation page of `OneFilePerActor` that its main use is for source control when different people are working on the same project. Since I’m working alone, I shouldn’t need it right ?

---

<div class="post-metadata">

**Author:** ![Vahab](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vahab/32/1148756_2.png) [@Vahab](https://forums.unrealengine.com/u/Vahab)\
**Post date:** [February 18, 2026, 5:19pm UTC](https://forums.unrealengine.com/t/how-to-properly-setup-child-parent-relationship-in-editor-via-functions/2699053/7 "2026-02-18T17:19:29Z")

</div>

One of the main purposes is version control, essential for World Partition.
