新建项目工程,这个manifest.json为空。
当在项目工程的脚本中使用JsonUtility,manifest.json文件会自动运行,
打开工程项目所在文件夹E:\Unity\UnityProjects\New Unity Project\Packages\manifest.json
如果显示JsonUtility出现错误,无法引用。
Assets/Scripts/JsonHelper.cs(9,30): error CS1070: The type `UnityEngine.JsonUtility' has been forwarded to an assembly that is not referenced. Enable the built in package 'JSONSerialize' in the Package Manager window to fix this error.
Assets/Scripts/JsonHelper.cs(9,42): error CS0023: The `.' operator cannot be applied to operand of type `UnityEngine.JsonUtility'
Assets/Scripts/JsonHelper.cs(17,28): error CS0023: The `.' operator cannot be applied to operand of type `UnityEngine.JsonUtility'
Assets/Scripts/JsonHelper.cs(24,28): error CS0023: The `.' operator cannot be applied to operand of type `UnityEngine.JsonUtility'
使得manifest.json包含以下内容