Creating and opening a custom editor window which derives from SceneView
causes the following error:
Unable to load the icon: 'CustomEditorWindow'.
Note that either full project path should be used (with extension) or just the icon name if the icon is located in the following location: 'Assets/Editor Default Resources/Icons/' (without extension, since png is assumed)
UnityEditor.EditorWindow:CreateWindow(String, Type[])
CustomEditorWindow:Init() (at Assets/Scripts/Editor/TestEditorWindow.cs:8)
Why is this happening? What am I doing wrong? Or is this a bug?
The Code is as simple as it gets:
using UnityEditor;
public class CustomEditorWindow : SceneView
{
[MenuItem("Window/Custom Editor Window")]
public static void Init ()
{
CreateWindow<CustomEditorWindow>("Custom Editor Window");
}
}
Any suggestions?