Configuration file txt encoding problem I have read UGF documents written by some bloggers, and I have also encountered this problem. One of them is because the default encoding of TXT files saved through Excel is ANSI, so this is likely to occur when encountering configuration files with Chinese characters. question. Just reopen the TXT file and set the encoding to utf-8 when saving as.
JsonUtility library support problem Through the second paragraph of the problem description, we can know that the default Json parsing of the framework uses the JsonUtility library, and the unity document describes it like this:
In the class I created, all fields are defined as attributes: