update editor code
This commit is contained in:
@@ -184,8 +184,11 @@ namespace YooAsset.Editor
|
||||
{
|
||||
IPackRule packRule = PackDirectory.StaticPackRule;
|
||||
var bundleName = packRule.GetBundleName(new PackRuleData(AssetPath));
|
||||
var shareBundleName = $"share_{bundleName}.{YooAssetSettingsData.Setting.AssetBundleFileVariant}";
|
||||
_shareBundleName = EditorTools.GetRegularPath(shareBundleName).ToLower();
|
||||
if (YooAssetSettingsData.Setting.RegularBundleName)
|
||||
bundleName = EditorTools.GetRegularPath(bundleName).Replace('/', '_').Replace('.', '_').ToLower();
|
||||
else
|
||||
bundleName = EditorTools.GetRegularPath(bundleName).ToLower();
|
||||
_shareBundleName = $"share_{bundleName}.{YooAssetSettingsData.Setting.AssetBundleFileVariant}";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7,18 +7,18 @@ namespace YooAsset.Editor
|
||||
public enum EOutputNameStyle
|
||||
{
|
||||
/// <summary>
|
||||
/// 000000000000000f000000000000000
|
||||
/// 哈希值名称
|
||||
/// </summary>
|
||||
HashName = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 000000000000000f000000000000000.bundle
|
||||
/// 资源包名称
|
||||
/// </summary>
|
||||
HashName_Extension = 2,
|
||||
BundleName = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 000000000000000f000000000000000_bundle_name.bundle
|
||||
/// 资源包名称 + 哈希值名称
|
||||
/// </summary>
|
||||
HashName_BundleName_Extension = 4,
|
||||
BundleName_HashName = 4,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user