In my game, the user can modify some static mesh actor and i want to save his change.
I try t use FEditorFileUtils::SaveWorlds() but i have a link error, however i build my project with the module UnrealEd and i include Editor/UnrealEd/Public/FileHelpers.h.
Can you help me to solve my error or maybe there is another better fonction in my case.
editor only functions or plugins can’t and won’t compile for runtime version (game, client or server) … it’s because it’s only devs function or internal use in editor himself …
This function save your map in your editor but runtime builds have cooked maps, so even if it can compile it will fail in game
A solution you might try is track those changes to the static mesh, and reapply them on load, since variables with UPROPERTY above them are tracked by saves.