Spawn actor from string?

Hi, there is a lot of ways you could do this.
This is how I would / did it in our current project.

  1. you could create a map with string as keys of and actor class as value and define all the actor classes you need.

OR

  1. use a “switch on spring” and define there the classes and spawn logic for each class

I hope that helps there is not a direct conversion from string to classes as far as I know.

1 Like