update editor code

BuildParameters增加共享资源的打包规则字段
This commit is contained in:
hevinci
2023-04-22 17:22:59 +08:00
parent 1b75f4b6e9
commit 9a729f921e
10 changed files with 70 additions and 10 deletions
@@ -0,0 +1,16 @@
using System;
using System.IO;
using UnityEditor;
namespace YooAsset.Editor
{
public class DefaultShareAssetPackRule : IShareAssetPackRule
{
public PackRuleResult GetPackRuleResult(string assetPath)
{
string bundleName = Path.GetDirectoryName(assetPath);
PackRuleResult result = new PackRuleResult(bundleName, DefaultPackRule.AssetBundleFileExtension);
return result;
}
}
}