public AssetFileInfo(string path, AssetFileManagerSettings settings, AssetBundleInfo assetBundleInfo) { this.FileName = path; this.Setting = settings.FindSettingFromPath(path); this.AssetBundleInfo = assetBundleInfo; this.StrageType = ParseStrageType(); }
//アセットバンドルのリストを取得 List <MainAssetInfo> GetAssetBudleList(AssetFileManagerSettings settings) { List <MainAssetInfo> assets = new List <MainAssetInfo>(); //指定ディレクトリ以下のアセットを全て取得 MainAssetInfo inputDirAsset = new MainAssetInfo(AssetBundleDirectory); foreach (MainAssetInfo asset in inputDirAsset.GetAllChidren()) { if (asset.IsDirectory) { continue; } if (IsIgnoreAssetBundle(asset)) { continue; } AssetFileSetting assetFileSetting = settings.FindSettingFromPath(asset.AssetPath); AssetFileEncodeType encodeType = assetFileSetting.EncodeType; switch (encodeType) { case AssetFileEncodeType.AssetBundle: assets.Add(asset); break; default: break; } } return(assets); }
public AssetFile FindAssetFile(string filePath, AssetFileManagerSettings settings, StringGridRow rowData) { if (Assets == null) { return(null); } string assetName = FilePathUtil.GetFileNameWithoutExtension(filePath); StaticAsset asset = Assets.Find((x) => (x.Asset.name == assetName)); if (asset == null) { return(null); } return(new StaticAssetFile(asset, filePath, settings.FindSettingFromPath(filePath), rowData)); }
void InitSub(string path, AssetFileManagerSettings settings, ConvertFileListManager convertFileListManager) { InitKey(path); this.filePath = Key; //ファイル設定を取得 this.setting = settings.FindSettingFromPath(FilePath); if (FileType == AssetFileType.Csv && FilePathUtil.CheckExtentionWithOutDouble(FilePath, ExtensionUtil.TSV, ExtensionUtil.UtageFile)) { loadFlags |= AssetFileLoadFlags.Tsv; } //保存場所の設定 this.strageType = ParseStrageType(); //コンバートファイル情報を設定 if (convertFileListManager.IsInitialized) { SetConvertFileInfo(convertFileListManager); } }