How to get class from actor blueprint?
I have created a blueprint that is meant to be able to spawn actors from a dynamic set of blueprints, and the spawn actor from class function requires a class to be passed in to spawn an actor, how can I get the class from a blueprint I have created and pass that class into the spawn actor function?
Basically I want to be able to have logic to select a blueprint (or class) and spawn that as an actor from the blueprint script.
asked Apr 02 '14 at 06:57 PM in Blueprint Scripting
Some from my understanding you got set of blueprint classes (since blueprint is practically a class as same as coded in C++) and one class that select one of those classes and spawn them.
I can't find block which would grab asset form content browser, but C++ has APIs for that so you could try to use that if you got skill. Alternatively, you could create array of classes and select classes from that array.
answered Apr 02 '14 at 07:19 PM
This is my event graph and I want to add a switch statement to select between different blueprints and spawn actors based on that.
answered Apr 02 '14 at 07:39 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here