I build a system for procedural level generation and would like to know how to save all the actors and their tranformation to a file. could anyone please tell me how I could do something like this? (sorry if my english isn’t the best. It’s not my mother tongue)
If you are using blueprints, check out the SaveGame system which will allow you to write data to a file:
https://docs.unrealengine.com/latest/INT/Gameplay/SaveGame/Blueprints/index.html
If you are using C++, you could try something like this:
A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums,Read%26_Write_Any_Data_to_Compressed_Binary_Files
I either case you are just going to loop through the actors and write their transformations to a file. I am assuming you want to use them later to reload a procedural level.
Did you ever figure this out? I’m having the same issue. I have a level made of procedural buildings that are made of procedural parts. There are tons of procedural things going on. I’m using level streaming to load and unload instances of my map over and over, but they’re different every time, and obviously I want them to be consistent.