Beispiel #1
0
    public static T OpenEditorWindow <T>(GUIContent title) where T : EditorWindow
    {
        var window = LevelEditorWindow.GetWindow <T>();

        window.titleContent = title;
        return(window);
    }
Beispiel #2
0
    public static T OpenEditorWindow <T>(string title) where T : EditorWindow
    {
        var window = LevelEditorWindow.GetWindow <T>();

        window.titleContent = EditorGUIUtility.TrTextContent(title);
        return(window);
    }