1,反序列的话要添加[System.Serializable]特性
2,用字段不要用属性
3,有用到List,字典的时候,记得使用using System.Collections.Generic;而不是using Boo.Lang;(这是巨坑,容易忽略)
使用Unity的JsonUtility的坑
最新推荐文章于 2023-10-07 15:16:33 发布
1,反序列的话要添加[System.Serializable]特性
2,用字段不要用属性
3,有用到List,字典的时候,记得使用using System.Collections.Generic;而不是using Boo.Lang;(这是巨坑,容易忽略)