Error: Unable to load the icon: 'CustomEditorWindow'. (Custom Scene View)

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?

If you create an image file and leave out the window title, when creating it in the code, you can see where the image is supposed to go :slight_smile: “Scene” seems to be the default name, when none is further specified.