//設定データをインポート void ImportSettingBook(StringGridDictionary book, string path) { //インポート後のスクリプタブルオブジェクトを作成 string assetPath = Path.GetDirectoryName(path) + "/" + Path.GetFileNameWithoutExtension(path) + SettingAssetExt; foreach (var sheet in book.List) { StringGrid grid = sheet.Grid; //設定データか、シナリオデータかチェック if (AdvSettingDataManager.IsBootSheet(sheet.Name) || AdvSettingDataManager.IsSettingsSheet(sheet.Name)) { //設定データのアセットを作成 if (assetSetting == null) { assetSetting = UtageEditorToolKit.GetImportedAssetCreateIfMissing <AdvSettingDataManager>(assetPath); assetSetting.Clear(); } assetSetting.hideFlags = HideFlags.NotEditable; assetSetting.ParseFromExcel(sheet.Name, grid); } } if (assetSetting != null) { assetSetting.EditorTestInit(); Debug.Log(LanguageAdvErrorMsg.LocalizeTextFormat(AdvErrorMsg.Import, assetPath)); //変更を反映 EditorUtility.SetDirty(assetSetting); } }