I need to save different actors variables in file, and load them from specific directory.
SAV files from “SaveGames” folder are not fit, because i have folder with resources like sounds, png files. I want save and to load file that contains actors data and spawn that actors, and not from directory. But with my way it’s long process.
Just i made editor that creates “project” directory with asset folders, and i need to save and load actors from specific file.
Is there any way to do that faster? Or load SAV file from specefic file path?
One option you could try is using data tables to save the information you want for an actor. Reference this article: Data Driven Gameplay Elements in Unreal Engine | Unreal Engine 5.1 Documentation
I would recomend against trying to save actual actors, instead spawn an actor and then populate it’s data from the table. Now I’m not sure what the best way to actually load data into the game if you are talking about files added by the player somehow.
Thank You for answer, but i’m now tried to save all actors data into separate .DATA files, and this way is in hundred times faster than my way. But i’m try data tables later.