Changing Actor Class with Button

how can I change the Actor Class in the SpawnActor Blueprint (in an AR Project) by clicking a Button in the Debug Menu?

These are the relevant Blueprints of my not working attempt:

Debug Menu:

ARPawn Blueprint:

you will need to get a reference to the ARPawn bp actor that your showing here then set the variable. i mean to the actor itself and not the class. how you get the reference depends how how your creating these two blueprints and how they exist in the level.