Update AssetBundleCollector

原生文件打包规则包含文件后缀名
pull/51/head
hevinci 2022-11-21 19:07:34 +08:00
parent 4776ab9bd8
commit 3fedc5b1b3
1 changed files with 2 additions and 2 deletions

View File

@ -120,8 +120,8 @@ namespace YooAsset.Editor
if (depends.Length != 1) if (depends.Length != 1)
throw new Exception($"{nameof(PackRawFile)} is not support estension : {extension}"); throw new Exception($"{nameof(PackRawFile)} is not support estension : {extension}");
string bundleName = StringUtility.RemoveExtension(data.AssetPath); string bundleName = data.AssetPath;
return EditorTools.GetRegularPath(bundleName).Replace('/', '_'); return EditorTools.GetRegularPath(bundleName).Replace('/', '_').Replace('.', '_');
} }
} }