Check for Update/enlarge existing array
Posted: Tue Jun 16, 2020 9:45 am
I am using Unity 2017.4.40f1 with EZ 2 and Playmaker 1.8.5
I just updated my app from V1 to V2
In V1 I use an array to save which items where purchased or free of charge.
In V2 I added more items, so I have a larger array.
So far I checked, if the save-file exists and if so, I load the data. Works fine. But now in V2 it can only load the "old" data of course and I am kind of stuck how to update the array in the save file without losing the save data and adding my new data.
As for now, when I load the array from the V1 saved file, it will override ("delete") my new items, as they are all set to "0".
Is there a (playmaker) function, to check if an array entry exsists in the save file? Or any other ideas, how to solve this problem?
And is there a way to manually shorten the array in EZ2/Unity using the file editor for testing purpose?
I just updated my app from V1 to V2
In V1 I use an array to save which items where purchased or free of charge.
In V2 I added more items, so I have a larger array.
So far I checked, if the save-file exists and if so, I load the data. Works fine. But now in V2 it can only load the "old" data of course and I am kind of stuck how to update the array in the save file without losing the save data and adding my new data.
As for now, when I load the array from the V1 saved file, it will override ("delete") my new items, as they are all set to "0".
Is there a (playmaker) function, to check if an array entry exsists in the save file? Or any other ideas, how to solve this problem?
And is there a way to manually shorten the array in EZ2/Unity using the file editor for testing purpose?