Skip to content

Commit

Permalink
提交
Browse files Browse the repository at this point in the history
  • Loading branch information
pirunxi committed May 8, 2024
1 parent 9b3e654 commit 3e8b705
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/business/reload/commonerrors.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@

解决办法有几种:

- 给被序列化或者反序列化的类型加上`[Serializable]`特性,如果这些类型中成员字段的类型也是class类型`A`或者`List<A>`,则也要给`A`也加上`[Serializable]`
- 修改这些反序列化库的代码,在卸载程序集后,清空它们的反射缓存。像Unity的JsonUtility是native实现,无法清空缓存,只能更换为其他Json库。

0 comments on commit 3e8b705

Please sign in to comment.