I have a c++ script that places persistent items in a level (for my game level editor). For example, the script places MESH X, and assign its property ‘ID’ a value Y.
When I’m tampering around the level, changing small details here and there, sometimes I notice that the meshes have their properties reset to their default values (zero in this case). Also arrays generated by the script get lost.
If my explanation is clear, how do you handle persistance? What am I doing wrong?