Hello!
I am trying to get X,Y positional data, stored in a savegame object whilst playing in editor, to also be available in a package.
This is for a mini map system with clickable spawn locations for the end user.
I want to be able to set these points before hand (in editor).
The system all works well in editor and even between editor restarts.
Only when I run a packaged version of the game, all the spawn point data is gone because there is no savegame object available in the package.
I can manually copy the “.sav” files over and all works perfectly, so I have a workaround.
However, Is there a way to get the savegame to come through into the package automatically?
If not, could I perhaps use a dataAsset? Can I write to a dataAsset whilst playing in editor, as I add points to the mini map?
Many thanks
Graham
Update:
I tried testing out Data assets (the Blueprint created variety, not C++)
as detailed here: HTF do I? Blueprint only Data Assets in Unreal Engine 4 ( UE4 ) - YouTube
I setup a string variable with initial value “123” inside my data asset.
During PIE (play in editor), I assigned it a new value: “qwerty”.
This new value holds, between different PIE sessions, but NOT after restarting editor.
Also once packaged, the string resets to “123”.
So, it would seem that Data assets are not even as helpful as a SaveSame (which does at least hold data between editor restarts).
Could I be missing something with Data assets??
Thanks again
Graham
I found this thread:
https://www.reddit.com/r/unrealengine/comments/cmsbn4/help_how_to_store_dynamically_created_data_using/
In the final post the OP mentions “asset data” solved their issue (which was identical to mine)
Am I correct that “asset data” is different from the “Data assets” I mentioned in last post?
I tried finding out how to use “Create Asset Data” but there is next to nothing about it and I haven’t a clue how to use the node and what Uobject subclass to use it with!
Any pointers would be hugely appreciated
A stab in the dark also welcome!
Cheers
Graham