Hello,
I'm looking for advice on how to create a new player with PlayerData (Title) that is already instantiated at default values.
OR
Is there a function I can use that, when trying to load PlayerData, if a particular data variable isn't defined, it will create it and set it to a default value?
The issue is this:
When I update the client, and a new PlayerData item is added, all existing players don't have that defined, and so when I try to use it at the beginning of the game when I am loading data, an error is returned which could potentially break the game.
I'm trying to find method where current users will be updated with any new data that I add to the game during development. Is there a solution to this?
Thanks,