Unity报错: Broken text PPtr in file(xxx). Local file identifier (xxx) doesn‘t exist

When Editor opens a Prefab, the log reports the following error:

Broken text PPtr in file(Library/Unused/20233edc2fd58194b896e7d5f2769846). Local file identifier (786513240552205863) doesn't exist!

Open the prefab file directly with a text editor and search for this non-existent file id 786513240552205863

You can see the attributes corresponding to the original file id. After checking, it is found that the resource corresponding to this GoldAwardTipsNum has been deleted before. If you delete a file under normal circumstances, Unity should automatically leave the file id empty. However, there is a situation where it is not empty and an error is reported.

The solution is to directly change the value of this fileID to 0

After opening Prefab again, the error message disappeared.

Guess you like

Origin blog.csdn.net/shaobing32/article/details/123049126