public static void Init()
    {
        if (legalTypesSelected == null)
        {
            legalTypesSelected = new bool[legalTypes.Length];

            foreach (MTYP def in legalTypesDefault)
            {
                int index = Array.IndexOf(legalTypes, def);

                if (index >= 0)
                {
                    legalTypesSelected[index] = true;
                }
            }
        }

        if (legalModelsSelected == null)
        {
            legalModelsSelected = new bool[legalModels.Length];

            foreach (ModelTag def in legalModelsDefault)
            {
                int index = Array.IndexOf(legalModels, def);

                if (index >= 0)
                {
                    legalModelsSelected[index] = true;
                }
            }
        }

        MshImportOptionsWindow window = GetWindow <MshImportOptionsWindow>();

        window.Show();

        // try load our default material we ship
        SWBF2Import.DEFAULT_MATERIAL = AssetDatabase.LoadAssetAtPath <Material>("Assets/SWBF2Import/DefaultImportMaterial.mat");
    }
    public static void Init()
    {
        if (legalTypesSelected == null)
        {
            legalTypesSelected = new bool[legalTypes.Length];

            foreach (MTYP def in legalTypesDefault)
            {
                int index = Array.IndexOf(legalTypes, def);

                if (index >= 0)
                {
                    legalTypesSelected[index] = true;
                }
            }
        }

        if (legalModelsSelected == null)
        {
            legalModelsSelected = new bool[legalModels.Length];

            foreach (ModelTag def in legalModelsDefault)
            {
                int index = Array.IndexOf(legalModels, def);

                if (index >= 0)
                {
                    legalModelsSelected[index] = true;
                }
            }
        }

        MshImportOptionsWindow window = GetWindow <MshImportOptionsWindow>();

        window.Show();
    }