- Home /
Error CS0246: The type or namespace name `UnityEditor' could not be found. Are you missing an assembly reference?
I want to use EditorUtility.DisplayDialog function. I added UnityEngine class in order to use this function. When the time to build comes I got this error. I checked reference list from solution explorer everything seems fine. No any syntax error. I missed the point but where?
Answer by gamerinclude · Mar 25, 2018 at 04:05 PM
Solved -- Solved this particular problem by using this code block:
# if UNITY_ENGINE using UnityEditor; # endif
Your answer
Follow this Question
Related Questions
Error 0x00050 building unity2017 0 Answers
CommandInvokationFailure: Gradle build failed 2020 0 Answers
Unity crashing my Macbook Air during android builds 0 Answers
Realtime GI does not work when project is build in unity 2018.4.18 1 Answer
Project scripts stop working after building it in Android 1 Answer