- Home /
Canvas Problem
Hello, I got a problem with my canvases , When i just turn off unity for some minutes and then again turned it on and i was shocked that my canvases are gone and i got some error , i created those Ui for my game in 24 hours and it was liked washed up or something , can anybody please help me how do i recover them, i got some errors and the scripts in the ui are missing . all ui scripts are missing . Here are the pics of errors(both errors those are out of line are also covered in the pictures so you can fully check them) and script missing .
WARNING: THE ACCEPTED ANSWER CONTAINED HEREIN IS UNSTABLE AND SHOULD NOT BE ATTE$$anonymous$$PTED UNLESS YOU ARE CERTAIN THE UI.dll FILES ARE BRO$$anonymous$$EN. Please file a bug report.
Bug report is already filed with 164 votes (ID 668043) and the provided answer is unfortunately the only way to fix the issue. It is a serious bug that breaks the whole UI system and without the workaround, there is no alternate ways of fixing it except reinstalling Unity and deleting all library files, which causes a reimport of all assets, which is bad on big projects.
Answer by alexandre-fiset · Jun 22, 2015 at 09:53 PM
This is a (really annoying) bug with the Ui system which can be fixed with the following method (taken from this forum thread):
Quit Unity
Move UnityEngine.UI.dll and UnityEditor.UI.dll to your desktop - ( These are located at C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/GUISystem, there error will tell you where as well )
Relaunch Unity - Don't have to open up a project I don't think, if you're using Unity 5, just as long as the Launcher opens up should be fine *it crashed anyway when I tried to load my project )
Quit Unity
Move UnityEngine.UI.dll and UnityEditor.UI.dll back to their original location
Relaunch Unity
Thanks your solution works ,the layout is default now but that's ok , thanks . The gui is there but there are still two errors . That's ok i can remove them
Every time i open my main menu scene i got unity crash and a window send them about this crash.
WARNING: To anyone reads this, if you don't have the issue, please don't touch the two files as this will cause the issue to start happening.
@alexandre.fiset I am having this problem but UnityEditor.UI.dll is not in that folder for me. UnityEngine.UI.dll is. Should I still try this? Should I reinstall Unity? Thanks for any help!
Your answer
Follow this Question
Related Questions
Only Rotate UI HUD on orientation change. 0 Answers
2d image does not scale/stretch correctly 2 Answers
Get position of ui element on canvas 1 Answer
Play MP4 on UI? (Unity 3D 2018.2) 0 Answers
yield WaitForSeconds(1) ends with this error:ArgumentException: method return type is incompatible 2 Answers