I’m developing a physics based game.
Now I’m implementing save/load function for my game. I wanted to save all physics properties of all nodes in the scene to local storage as json text. I made a list which has keys are UUIDs of nodes and values are the data to be stored. It works perfectly, saves and loads when I test in Cocos Creator Editor (Simulator).
The problem is:
All UUIDs are removed or changed during build process and game assigns randomly changing UUIDs to nodes each start. So it’s impossible to find the same node with changing UUID to restore data. Sometimes node orders and parents are changing because of game logic. So I need some way to fix UUIDs for nodes and keep same UUIDs with released app.
What is your opinion?