void CreateCollection() { var assetDirectory = EditorUtility.SaveFolderPanel("Create Table Collection", "Assets/", ""); if (string.IsNullOrEmpty(assetDirectory)) { return; } LocalizationTableCollection createdCollection = null; if (m_CollectionTypePopup.value == typeof(StringTableCollection)) { createdCollection = LocalizationEditorSettings.CreateStringTableCollection(m_TableCollectionName.value, assetDirectory, GetSelectedLocales()); } if (m_CollectionTypePopup.value == typeof(AssetTableCollection)) { createdCollection = LocalizationEditorSettings.CreateAssetTableCollection(m_TableCollectionName.value, assetDirectory, GetSelectedLocales()); } // Select the root asset and open the table editor window. Selection.activeObject = createdCollection; LocalizationTablesWindow.ShowWindow(createdCollection); InitializeTableName(); }