- Home /
This question was
closed Jun 11, 2015 at 08:17 AM by
DiebeImDunkeln for the following reason:
Found a solution by myself.
Question by
DiebeImDunkeln · Jun 11, 2015 at 08:04 AM ·
unity5unityeditor
Unity 5.1 "using UnityEditor" is throwing error messages
since I installed Unity 5.1 I can't use UnityEnigne anymore.
I get this error message in Visual Studio:
The type or namespace name 'UnityEditor' could not be found (are you missing a using directive or an assembly reference?)
Comment
Best Answer
Answer by DiebeImDunkeln · Jun 11, 2015 at 08:16 AM
I found the problem. A scriptable object was missing.
Answer by Kiwasi · Jun 11, 2015 at 08:06 AM
Is the script in the Editor folder? You can only use UnityEditor from the editor folder.
yes, it is in the Editor folder. I have a corresponding script outside the Editor folder and there I get no error message. I get the error only from the script within the Editor folder.