# Scene Graph: RemoveFromParent doesn't replicate to the client if the entity is a child of a prefab

**URL:** <https://forums.unrealengine.com/t/scene-graph-removefromparent-doesnt-replicate-to-the-client-if-the-entity-is-a-child-of-a-prefab/2542308>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, closed, fortnite\
**Created:** [June 5, 2025, 12:51pm UTC](https://forums.unrealengine.com/t/scene-graph-removefromparent-doesnt-replicate-to-the-client-if-the-entity-is-a-child-of-a-prefab/2542308 "2025-06-05T12:51:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jqvim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jqvim](https://forums.unrealengine.com/u/jqvim)\
**Post date:** [June 5, 2025, 12:51pm UTC](https://forums.unrealengine.com/t/scene-graph-removefromparent-doesnt-replicate-to-the-client-if-the-entity-is-a-child-of-a-prefab/2542308/1 "2025-06-05T12:51:37Z")

</div>

### Summary

When using Entity.RemoveFromParent() on an entity that is a child of a prefab, the removal isn’t happening within the game, but server state seems correct.

### Please select what you are reporting on:

Unreal Editor for Fortnite

### What Type of Bug are you experiencing?

Verse

### Steps to Reproduce

1. Create a custom component that removes its entity after some time

```verse
example_component := class<final_super>(component) {
	OnSimulate<override>()<suspends>: void ={
		Sleep(5.0)
		if (Parent := Entity.GetParent[]) {
			Print("Initial parent child count: {Parent.GetEntities().Length}")
			Entity.RemoveFromParent()
			Print("RemoveFromParent called, new parent child count: {Parent.GetEntities().Length}")
		}
	}
}

```

1. Create a prefab containing a child entity with the custom component. Give it a mesh too

2. Spawn the prefab to the world

```verse
using { /Fortnite.com/Devices }
using { /Verse.org/SceneGraph }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/SpatialMath }

example_device := class<final>(creative_device) {
	@editable TestButton: button_device = button_device{}

	OnBegin<override>()<suspends>: void ={
		TestButton.InteractedWithEvent.Await()

		NewEntity := Prefab_example{}
		NewEntity.SetGlobalTransform(FromTransform(TestButton.GetTransform()))
		if (SimulationEntity := GetSimulationEntity[]) {
			SimulationEntity.AddEntities(array{NewEntity})
		}
	}
}

```

### Expected Result

The child entity removal should be replicated to players.

### Observed Result

The entity is still visible to players after being removed. The server state seems correct: Parent.GetEntities().Length decreases, and the player can glitch through the mesh when walking into it.

### Platform(s)

N/A (Desktop)

### Video

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/4/2f43afa6359f40dd6c2e902a029b72c959fa31bd.jpeg "Scene Graph: RemoveFromParent doesn't replicate to the client if the entity is a child of a prefab") ](https://www.youtube.com/watch?v=CDCAcMXhZkQ)

---

<div class="post-metadata">

**Author:** ![ArcaneStudio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArcaneStudio](https://forums.unrealengine.com/u/ArcaneStudio)\
**Post date:** [June 5, 2025, 12:57pm UTC](https://forums.unrealengine.com/t/scene-graph-removefromparent-doesnt-replicate-to-the-client-if-the-entity-is-a-child-of-a-prefab/2542308/2 "2025-06-05T12:57:37Z")

</div>

Yeah, I run into that all the time. Especially big problem is the prefab spawned entities, they seem to have a different behavior.

---

<div class="post-metadata">

**Author:** ![Bug-Reporter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bug-reporter/32/1223650_2.png) [@Bug-Reporter](https://forums.unrealengine.com/u/Bug-Reporter)\
**Post date:** [September 9, 2025, 5:48pm UTC](https://forums.unrealengine.com/t/scene-graph-removefromparent-doesnt-replicate-to-the-client-if-the-entity-is-a-child-of-a-prefab/2542308/5 "2025-09-09T17:48:38Z")

</div>

FORT-919849 has been ‘Closed’. We’re unable to reproduce this issue.

---

<div class="post-metadata">

**Author:** ![JerryWho](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jerrywho/32/635218_2.png) [@JerryWho](https://forums.unrealengine.com/u/JerryWho)\
**Post date:** [October 3, 2025, 5:53pm UTC](https://forums.unrealengine.com/t/scene-graph-removefromparent-doesnt-replicate-to-the-client-if-the-entity-is-a-child-of-a-prefab/2542308/6 "2025-10-03T17:53:23Z")

</div>

Having this exact same issue

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 2, 2025, 12:51pm UTC](https://forums.unrealengine.com/t/scene-graph-removefromparent-doesnt-replicate-to-the-client-if-the-entity-is-a-child-of-a-prefab/2542308/7 "2025-12-02T12:51:38Z")

</div>

This topic was automatically closed after 180 days. New replies are no longer allowed.
