- Home /
Problem fixed it's self
UnityEngine.UI stopped working
When I first open my project everything works fine. Except for two errors in the console. FileNotFoundException: Could not load file or assembly 'UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies."
and Couldn't call method UNetDomainReload because the class NetworkIdentity or method couldn't be found.
However, the scene still runs until I change on of my scripts and save the changes. When I save the changes the console explodes with errors like Assets/SteamVR/InteractionSystem/Core/Scripts/UIElement.cs(9,19): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'UnityEngine'. Are you missing an assembly reference?
and Assets/SteamVR/InteractionSystem/Teleport/Scripts/TeleportPoint.cs(42,11): error CS0246: The type or namespace name 'Text' could not be found. Are you missing an assembly reference?
Has anyone encountered this problem and if so how did they fix it?
Edit: I reimported all of my assets and now unity is working fine. However in VisualCode2017 (which is the editor that I use) anything that uses UnityEngine.UI it says that it doesn't recognize it. Any ideas as to why this is happening? Is it a problem with VisualCode?
Second Edit: I updated my visual code license and that seamed to fix it.
Can you try disabling your objects referencing those S$$anonymous$$m VR scripts and see if that problem persists? If not, can you reference UnityEngine.UI from within another script and see if it reappears?
@TreyH I tried to reference UnityEngine.UI from antoher script and it was still broken.
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How to handle inactive object updates 0 Answers
Instantiate problem with selected objects 0 Answers
How to drag objects from UI into scen 3 Answers