[HELP] Tricky problem related to Spawned Actors, they disappear when reopening a level
Hi, I am currently working on a plugin which is supposed to spawn a number of characters in the scene.
I have plugin button which spawns actors when pressed. The actors have a skeleton choosed randomly in a range of skeletons from my Content browser. Here the problems start:
This way, I can have a different skeleton for each characters. But, I have to initialize skeletonPath to null at first in order to compile.
So, here is the problem: when I spawn my characters it works well. But then, if I save my level, close UE and reopen it, my characters are still in the outliner but not in the scene because it seems that UE is initializing AMyCharacter class and see that skeletonPath is empty, so it couldn't load my previously spawned characters with their corresponding skeletons.
My implementation is probably wrong somewhere, anybody see how I can conserve all the characters I spawned after I reopen the level just like they were before I close it ?
I hope it's clear, thanks A LOT for your help on that !
Follow this question
Once you sign in you will be able to subscribe for any updates here