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

Code Example - 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