question
The game data suddenly cannot be saved without any error. There is also a problem when trying to save in the background.
There is no problem on the editor and PC, but it cannot be saved on the mobile terminal.
reason
The storage method I use is Newtonsoft.Json to convert the object into an encrypted string and save it locally
. Unfortunately, I use HashSet, which causes Newtonsoft.Json to crash during the conversion without an error message.
Solution
Use List