unity3d 无法加载类型自述文件

8ehkhllq  于 2022-12-13  发布在  其他
关注(0)|答案(1)|浏览(233)

我正在做一个项目使用统一和C#,突然我的笔记本电脑崩溃,并在它重新启动后,该项目是给我这个错误消息:

TypeLoadException: Could not load type Readme, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null while decoding custom attribute: (null)
System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inheritedOnly) (at <3dd5df5ef4974f29afeb2d3ba227c5da>:0)
System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inherit) (at <3dd5df5ef4974f29afeb2d3ba227c5da>:0)
System.RuntimeType.GetCustomAttributes (System.Type attributeType, System.Boolean inherit) (at <3dd5df5ef4974f29afeb2d3ba227c5da>:0)
UnityEditor.CustomEditorAttributes.Rebuild () (at <8a1c902e1cc24cec8e4dda915647a0cd>:0)
UnityEditor.CustomEditorAttributes.FindCustomEditorTypeByType (System.Type type, System.Boolean multiEdit) (at <8a1c902e1cc24cec8e4dda915647a0cd>:0)
UnityEditor.CustomEditorAttributes.FindCustomEditorType (UnityEngine.Object o, System.Boolean multiEdit) (at <8a1c902e1cc24cec8e4dda915647a0cd>:0)
UnityEditor.SceneView:Awake()
UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
UnityEditor.WindowLayout:LoadDefaultWindowPreferences()

错误只是不断重复,并对和项目是完全罚款之前,笔记本电脑崩溃。任何解决方案?谢谢

vxf3dgd4

vxf3dgd41#

关闭Unity后,删除Library、Logs和obj目录,然后重新启动Unity。这是我在Unity项目出现问题并且无法找出原因时经常采取的方法。
这将重建Unity生成的文件。它不会影响您添加的任何代码或资源,但如果您担心,请复制一份。

相关问题