Set Child Actor Class with object not already in level

I am making a blueprint for artists to use (attaches blueprint actors and static meshes to a spline). To add the blueprint actors I am using an AddChildActorComponent node and then a SetChildActorClass node.


The artists choose what they want to add in the details panel of the editor. However, the blueprint actors they add may not already be in the level.
An actor array exposed to the editor, only allows loading an actor already in the level, so I used an Object Array instead in my blueprint.

To get the object class into the SetChildActorClass, I tried casting to Actor Class. This fails.
How do I set it up so I can set the Child Actor Class as a blueprint not already in the level?
If I add the Child component manually, I can set the Child Actor Class to whatever I want, I’m just having difficulty doing it via blueprint nodes.

Like this :slight_smile:

( or an array of actor object refs… )

1 Like

Great! Thanks so much.

Solved by using Actor class reference instead of Actor object reference. The class reference allows you to select any BP in the project and can be directly piped into SetChildActorClass.
For anyone finding this later in a search, here’s a pic of how to set the variable to actor class reference.