How to spawn a selecter character base on a string??

I want to spawn the latest selected character inside my lobby. But i don’t want to have a bunch of switch statements to spawn the character. How can i do that??

Never use strings to reference anything, use soft pointers.

All about Soft and Weak pointers | Tutorial

Simply associate a soft pointer to a character class with the selection option in the lobby character selector.

2 Likes