Пример #1
0
    //[MenuItem("Window/ExperienceMachine/Asset Explorer")]
    public static void Init(ExperienceType experienceType, ResourceType resourceType, string category)
    {
        //Debug.LogError(resourceType.ToString());
        // Get existing open window or if none, make a new one:
        m_window         = (AssetExplorer)EditorWindow.GetWindow(typeof(AssetExplorer));
        m_window.minSize = new Vector2(1200, 300);
        m_resourceType   = resourceType;
        FindAssetDatabase();
        string categoryText = string.IsNullOrEmpty(category) ? " " : " " + category.ToUpper() + " ";

        m_title = experienceType.ToString().ToUpper() + categoryText + resourceType.ToString().ToUpper() + " EXPLORER";
        InitializeResources(experienceType, resourceType, category);
        m_window.Show();
    }