天天看點

UnityEditor.UI.dll' is in timestamps but is not known in assetdatabase

網上找到一篇文章:

一、Remove the UI System
1、Close Unity
2、Access on Unity's installation folder on Explorer or Finder on mac (On mac rightclick on the App and click on ShowPackageContent).
3、Locate the folder named "UnityExtensions/Unity". (On Mac: "Content/UnityExtensions/Unity".
4、In this folder you will notice a folder named "GUISystem"
5、Move this folder from the installation folder (you may need administrator rights). Yes, right. Do not just rename it or move it out the "Unity" folder, Unity will find it... I assure you...
二、Have Unity notice the change
1、Open Unity again in the project you had the issue
2、You may have an error "GameObject (named 'Canvas') references runtime script in scene file. Fixing!"
3、Close Unity, DO NO SAVE ANY SCENE
三、Restore the UI System
1、Make sure Unity is closed
2、Restore the "GUISystem" to its previous location
3、Open Unity again
4、Unity will compile script
5、You will see the warning "Timestamps (19) and assets (21) maps out of sync." and the errors "Asset '' is in assets but has no assettimestamp..." just ignore them
6、Everything should be ok again
           

翻譯一下就是:

1、關閉Unity

先找到UnityExtensions/Unity下的GUISystem目錄,删除它,一定要删除,不要移動到别的檔案夾

2、打開Unity

出現"GameObject(named 'Canvas')的錯誤資訊,修複它,關閉Unity

3、再從資源回收筒将GUISystem恢複到原來目錄

從新打開Unity即可

繼續閱讀