Answers for "The type or namespace name 'EditorUtility' does not exist in the namespace 'UnityEditor"

C#
0

The type or namespace name 'EditorUtility' does not exist in the namespace 'UnityEditor

// EditorUtility code cannot run on a built game, therefore it errors on build. Just add the following ifs.
#if UNITY_EDITOR
            EditorUtility.DisplayDialog("Meh", "You got the pattern wrong ):", "Try Again!");
#endif
Posted by: Guest on February-16-2022

Code answers related to "The type or namespace name 'EditorUtility' does not exist in the namespace 'UnityEditor"

C# Answers by Framework

Browse Popular Code Answers by Language