How to load a blueprint class and spawn it in C++?

What you should do is add a TSubclassOf to your code, make a Blueprint of the Thing that Spawns the Thing, and specify the blueprint in there.

ie, class A spawns a BP Z …

make a Blueprint B that is of class A, and inside it specify BP Z to spawn.

1 Like