Open bub-bl opened 6 days ago
Hiya @bub-bl, sorry for taking ages to look at this, I had an exam this weekend so have been a bit busy
From the code above I can't see anywhere where you're saving the data (maybe I just don't have that bit?)
Typically to save with the [Saved]
attribute you would use something like Sandbank.Insert(...)
. Alternatively if you use the [AutoSaved]
attribute it should save automatically
This is my data model:
I use the data model from the Player component When the player is connected, i want to update the LastLogin property with the current date. The time is updated into the PlayerData component but never saved on the disk
The PlayerData should be saved when any properties of this class is updated