Filtering by class problem

Hello all!
I have a problem that just seems really really simple, and yet I can’t implement. I’m hoping someone has some advice or tips to get me through this blocker.
I have 30 playable characters for my players. I have tagged each of them by ethnicity and gender. They are all children of BP_ThirdPersonCharacter. They’re MetaHumans if that matters but I’m not sure that it does.
I have built a character creation menu system, and what I want to code in is this:
When the player selects ethnicity, it logically should filter the available playable characters from 30 to 3. When they select gender identity, it ought to filter down to 1. That one remaining character can then be set as the default pawn for the game mode, and we’re good to go.
But it’s just not coming together.
I’m self-taught so this could be me missing a fundamental building block - I had set the code into the UMG for the character selection process, and I was working as the attached screenie.

And nothing was happening. Can anyone give me a nudge on this one? It’s a blocker for me, and while I could brute-force have the character select simply swap out the various elements of a ThirdPersonCharacter to the selected MetaHuman, that seems like a clunky solution for character selection in a game I want to keep adding playable character options to.
Thanks so much for any help!

are the 30 chars in the scene?
because get all actors from class gets ACTUAL actors in the scene (spawned)

They are not at the moment - I was worried given the load I find MHs create that it would lag hard. Is there a way to sort of… pre-load them so they exist as data but not being rendered?

If what you doing is like a character editor then what you must do is have a single
metahuman character in the scene (choose one as default) and once you start customizing then you update your metahuman with the selections.

just put all your metahumans or all the 30 BP 3rd person assets you did in an array, then spawn a single 3rd person BP and then just replace it (you can even destroy/spawn in place)

1 Like