Spawn Actor and Change it while play/simulate

Hello, I have a problem with my virtual production project, I created a blueprint to spawn different actor with an array and can change the actor through the editor, the problem is I can’t change the actor when it play/simulate, it need me to stop play/simulate and change the actor array and then play again, is there any methods that can change actor even we on play/simulate. Cause I have 120+ object to switch while play\simulate
Screenshot_2

There are a couple of things we need to understand first. Are you implementing the switch function in the construction script? It looks like when you execute the switching action the function fails to execute or perhaps you didn’t call it. Instances are to be executed during the beginning of the play and before play but never during the gameplay (keep note).

It can be anything, you can always try to print a string to see if it executes. Also, changing 120+ in real time is better to do just once/one one-time event otherwise you will need a better plan for this.

do you have any recommendations for this? the goal is I can spawn and then change the actor blueprint when I play/simulate the scene for virtual production purposes, in the scene just needs 10 actors (5 for each team) to spawn and change during play/simulate

I have not found the method yet and can’t find it on YouTube. Here I attached the example that I want to make

this my blueprint for the spawner before

You can’t change an actor’s class on the fly. You can change components on that actor (the mesh, for example), but not the base class.

What you’d likely want to do is delete the spawned actor and spawn another one in its place. From the output object of SpawnActor, “Promote to Variable” so that you always have a reference to the spawned actor.

If you are spawning a long list of actors, then you’ll probably create something like a Map variable so you can manage the spawned actors individually and replace them on the fly as needed.