# Spawning Child Class Actors

**URL:** <https://forums.unrealengine.com/t/spawning-child-class-actors/2643438>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [August 16, 2025, 3:54am UTC](https://forums.unrealengine.com/t/spawning-child-class-actors/2643438 "2025-08-16T03:54:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anthonyjude](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anthonyjude](https://forums.unrealengine.com/u/anthonyjude)\
**Post date:** [August 16, 2025, 3:54am UTC](https://forums.unrealengine.com/t/spawning-child-class-actors/2643438/1 "2025-08-16T03:54:39Z")

</div>

Anyone know why this isn’t working in my level blueprint?

-I have 5 child classes that inherit from 1 parent.  
-I created an array of type, parent class and filled it with the child classes.  
-Nothing spawns in this configuration.

If I choose a child class manually in the Spawn node (no array input) the actors of that child class spawn just fine. Am i using the wrong array type? Can’t seem to figure out what’s going on.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/c/e7c3ab8217ecd73f4ae1d41085e53bfc078b8f07.png)

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [August 16, 2025, 4:07am UTC](https://forums.unrealengine.com/t/spawning-child-class-actors/2643438/2 "2025-08-16T04:07:23Z")

</div>

Add a print-to-screen node that prints the location and type of each actor spawned (use the output of the spawn actor node.)

Look in the output log to see whether there are error messages.

Are you sure there are target points in the level?

If you set a breakpoint on the “spawn actor” node, and start the game, and then hover over the “class” input, what does it say the picked class is?

---

<div class="post-metadata">

**Author:** ![anthonyjude](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anthonyjude](https://forums.unrealengine.com/u/anthonyjude)\
**Post date:** [August 16, 2025, 4:24am UTC](https://forums.unrealengine.com/t/spawning-child-class-actors/2643438/3 "2025-08-16T04:24:39Z")

</div>

There are 16 target points that spawn just fine if I directly put a child class into the “Spawn Actor” node so I know that functionality is ok.

Seems like my classes are NULL even though I made them type “Class Reference”. I am getting this error in Output “Warning: UGameplayStatics::BeginDeferredActorSpawnFromClass: can not spawn an actor from a NULL class”. It happens for each iteration of the loop, so this is most likely the culprit.

Here are my variable declarations not sure why they are NULL however. Any thoughts?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/8/c387e9c1bb68a6e62fb3214e9c0137693dd0f244.png)

---

<div class="post-metadata">

**Author:** ![anthonyjude](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anthonyjude](https://forums.unrealengine.com/u/anthonyjude)\
**Post date:** [August 16, 2025, 5:17am UTC](https://forums.unrealengine.com/t/spawning-child-class-actors/2643438/4 "2025-08-16T05:17:30Z")

</div>

Turns out I didn’t set the default values in the details section for the class references, now it’s working. Didn’t realize that was something I needed to do with class references, learn something new

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [August 17, 2025, 2:03am UTC](https://forums.unrealengine.com/t/spawning-child-class-actors/2643438/5 "2025-08-17T02:03:41Z")

</div>

The reason for this is that a class reference just says “this is a reference to some class that is a subclass of X.”  
It doesn’t know which particular subclass you intend. It doesn’t even know that you don’t have subclasses of those specific classes 🙂

---

<div class="post-metadata">

**Author:** ![anthonyjude](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anthonyjude](https://forums.unrealengine.com/u/anthonyjude)\
**Post date:** [August 19, 2025, 5:25pm UTC](https://forums.unrealengine.com/t/spawning-child-class-actors/2643438/6 "2025-08-19T17:25:20Z")

</div>

Makes sense, thank you for the explanation!
