- Home /
NGUI The type or namespace name `UnityEditor' could not be found.
Hello.
I am using NGUI, and unity 5.
I imported the packages and worked with them normally. My platform is set to Android. However, when I tried to build for android, suddenly NGUI gives me loads of errors of the type "The type or namespace name `UnityEditor' could not be found."
They're around 30 errors.
Here's a snapshot:
I looked online and they all said to replace the
using UnityEditor;
to
#if UNITY_EDITOR
using UnityEditor;
#endif
but that suddenly removed the errors and replaced them with other errors such as Namespace Editor not found or other stuff that re inside UnityEditor namespace.
What to do?!
Your answer
![](https://koobas.hobune.stream/wayback/20220613195959im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Rename Animation clip? 2 Answers
RenderTexture - NGUI Texture on android render problem 1 Answer
Best way to load a level depending on which game object is clicked 1 Answer
NGUI Project Upgrade 1 Answer
panel hide and show in NGUI 1 Answer