终于解决unity.meta文件丢失的问题

因为git上传时候文件没有上传成功导致的文件缺失问题报以下代码的错误

The .meta file 工程文件路径png.meta does not have a valid GUID and its corresponding Asset file will be ignored. If this file is not malformed, please add a GUID, or delete the .meta file and it will be recreated correctly UnityEditor

首先unity一直报这个错误虽然不会影响正常运行但是看起来还是很难受,所以网上找了好多教程感觉好麻烦,用代码检测各种解决方案,但是有一个更为简单粗暴的办法就是

直接找到报错位置的路径直接手动将该文件删除即可,然后在添加回去就行

猜你喜欢

转载自blog.csdn.net/m0_52608003/article/details/129902377