项目启动后莫名的崩溃,各种UI组件都加载不出来了,报错:
UnityEngine.UI.dll is in timestamps but is not known in assetdatabase。
心塞,, , 终于找到一个方案,感谢
j.robichaud
,
- Remove the UI System
- Close Unity
- Access on Unity's installation folder on Explorer or Finder on mac (On mac rightclick on the App and click on ShowPackageContent).
- Locate the folder named "UnityExtensions/Unity". (On Mac: "Content/UnityExtensions/Unity".
- In this folder you will notice a folder named "GUISystem"
- 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
- Open Unity again in the project you had the issue
- You may have an error "GameObject (named 'Canvas') references runtime script in scene file. Fixing!"
- Close Unity, DO NO SAVE ANY SCENE
- Restore the UI System
- Make sure Unity is closed
- Restore the "GUISystem" to its previous location
- Open Unity again
- Unity will compile script
- 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
- Everything should be ok again