static void Init() { Prefabshop window = EditorWindow.GetWindow <Prefabshop>(); Texture icon = Resources.Load("PrefabshopIcon") as Texture2D; // Create the instance of GUIContent to assign to the window. Gives the title "RBSettings" and the icon GUIContent titleContent = new GUIContent("Prefabshop", icon); window.titleContent = titleContent; window.Show(); }