modify
This commit is contained in:
parent
528172e14c
commit
7ac067086b
@ -28,7 +28,7 @@ public class ResourceBuildParameter
|
||||
|
||||
|
||||
public ECompressOption CompressOption = ECompressOption.LZ4;
|
||||
public EFileNameStyle FileNameStyle = EFileNameStyle.BundleName_HashName;
|
||||
// public EFileNameStyle FileNameStyle = EFileNameStyle.BundleName_HashName;
|
||||
public string EncryptionServiceType = "AlicizaX.Resource.Editor.FileOffsetEncryption";
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,7 @@ public static class ResourceBuildHelper
|
||||
BuildinFileRoot = AssetBundleBuilderHelper.GetStreamingAssetsRoot(),
|
||||
PackageVersion = buildParameter.UseDefaultPackageVersion ? GeneratePackageVersion() : buildParameter.PackageVersion,
|
||||
CompressOption = buildParameter.CompressOption,
|
||||
FileNameStyle = buildParameter.FileNameStyle,
|
||||
BuiltinShadersBundleName = GetBuiltinShaderBundleName(),
|
||||
VerifyBuildingResult = true,
|
||||
ClearBuildCacheFiles = false,
|
||||
BuildinFileCopyOption = copyOption,
|
||||
@ -80,6 +80,18 @@ public static class ResourceBuildHelper
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 内置着色器资源包名称
|
||||
/// 注意:和自动收集的着色器资源包名保持一致!
|
||||
/// </summary>
|
||||
private static string GetBuiltinShaderBundleName()
|
||||
{
|
||||
var uniqueBundleName = AssetBundleCollectorSettingData.Setting.UniqueBundleName;
|
||||
var packRuleResult = DefaultPackRule.CreateShadersPackRuleResult();
|
||||
return packRuleResult.GetBundleName(BuildPackageName, uniqueBundleName);
|
||||
}
|
||||
|
||||
private static void CopyFiles(string source, string destination)
|
||||
{
|
||||
try
|
||||
|
@ -66,6 +66,7 @@ public static class EditorSpriteSaveInfo
|
||||
{
|
||||
ti.SaveAndReimport();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
@ -127,9 +128,8 @@ public static class EditorSpriteSaveInfo
|
||||
|
||||
public static void MarkParentAtlasesDirty(string assetPath)
|
||||
{
|
||||
var currentPath = Path.GetDirectoryName(assetPath);
|
||||
var currentPath = Path.GetDirectoryName(assetPath)?.Replace("\\", "/");
|
||||
var rootPath = Config.sourceAtlasRoot.Replace("\\", "/").TrimEnd('/');
|
||||
|
||||
while (currentPath != null && currentPath.StartsWith(rootPath))
|
||||
{
|
||||
var parentAtlasName = GetAtlasNameForDirectory(currentPath);
|
||||
|
Loading…
Reference in New Issue
Block a user