mirror of https://github.com/tuyoogame/YooAsset
Update AssetBundleBuilder
parent
d575850f9f
commit
3ae70412fa
|
@ -23,7 +23,7 @@ namespace YooAsset.Editor
|
||||||
{
|
{
|
||||||
throw new Exception($"{nameof(buildParameters)} is null !");
|
throw new Exception($"{nameof(buildParameters)} is null !");
|
||||||
}
|
}
|
||||||
if (buildParameters.BuildPipeline == EBuildPipeline.ScriptBuildPipeline)
|
if (buildParameters.BuildPipeline == EBuildPipeline.ScriptableBuildPipeline)
|
||||||
{
|
{
|
||||||
if (buildParameters.SBPParameters == null)
|
if (buildParameters.SBPParameters == null)
|
||||||
throw new Exception($"{nameof(BuildParameters.SBPParameters)} is null !");
|
throw new Exception($"{nameof(BuildParameters.SBPParameters)} is null !");
|
||||||
|
@ -41,7 +41,7 @@ namespace YooAsset.Editor
|
||||||
|
|
||||||
// 创建构建节点
|
// 创建构建节点
|
||||||
List<IBuildTask> pipeline;
|
List<IBuildTask> pipeline;
|
||||||
if (buildParameters.BuildPipeline == EBuildPipeline.BuiltInBuildPipeline)
|
if (buildParameters.BuildPipeline == EBuildPipeline.BuiltinBuildPipeline)
|
||||||
{
|
{
|
||||||
pipeline = new List<IBuildTask>
|
pipeline = new List<IBuildTask>
|
||||||
{
|
{
|
||||||
|
@ -56,7 +56,7 @@ namespace YooAsset.Editor
|
||||||
new TaskCopyBuildinFiles(), //拷贝内置文件
|
new TaskCopyBuildinFiles(), //拷贝内置文件
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
else if (buildParameters.BuildPipeline == EBuildPipeline.ScriptBuildPipeline)
|
else if (buildParameters.BuildPipeline == EBuildPipeline.ScriptableBuildPipeline)
|
||||||
{
|
{
|
||||||
pipeline = new List<IBuildTask>
|
pipeline = new List<IBuildTask>
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@ namespace YooAsset.Editor
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 构建管线
|
/// 构建管线
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public EBuildPipeline BuildPipeline = EBuildPipeline.BuiltInBuildPipeline;
|
public EBuildPipeline BuildPipeline = EBuildPipeline.BuiltinBuildPipeline;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 构建模式
|
/// 构建模式
|
||||||
|
|
|
@ -192,7 +192,7 @@ namespace YooAsset.Editor
|
||||||
buildParameters.EncryptionServices = CreateEncryptionServicesInstance();
|
buildParameters.EncryptionServices = CreateEncryptionServicesInstance();
|
||||||
buildParameters.CompressOption = AssetBundleBuilderSettingData.Setting.CompressOption;
|
buildParameters.CompressOption = AssetBundleBuilderSettingData.Setting.CompressOption;
|
||||||
|
|
||||||
if (AssetBundleBuilderSettingData.Setting.BuildPipeline == EBuildPipeline.ScriptBuildPipeline)
|
if (AssetBundleBuilderSettingData.Setting.BuildPipeline == EBuildPipeline.ScriptableBuildPipeline)
|
||||||
{
|
{
|
||||||
buildParameters.SBPParameters = new BuildParameters.SBPBuildParameters();
|
buildParameters.SBPParameters = new BuildParameters.SBPBuildParameters();
|
||||||
buildParameters.SBPParameters.WriteLinkXML = true;
|
buildParameters.SBPParameters.WriteLinkXML = true;
|
||||||
|
|
|
@ -35,7 +35,7 @@ namespace YooAsset.Editor
|
||||||
patchManifest.AssetList = GetAllPatchAsset(buildParameters, buildMapContext, patchManifest);
|
patchManifest.AssetList = GetAllPatchAsset(buildParameters, buildMapContext, patchManifest);
|
||||||
|
|
||||||
// 更新Unity内置资源包的引用关系
|
// 更新Unity内置资源包的引用关系
|
||||||
if (buildParameters.Parameters.BuildPipeline == EBuildPipeline.ScriptBuildPipeline)
|
if (buildParameters.Parameters.BuildPipeline == EBuildPipeline.ScriptableBuildPipeline)
|
||||||
{
|
{
|
||||||
var buildResultContext = context.GetContextObject<TaskBuilding_SBP.SBPBuildResultContext>();
|
var buildResultContext = context.GetContextObject<TaskBuilding_SBP.SBPBuildResultContext>();
|
||||||
UpdateBuiltInBundleReference(patchManifest, buildResultContext.Results);
|
UpdateBuiltInBundleReference(patchManifest, buildResultContext.Results);
|
||||||
|
|
|
@ -54,7 +54,7 @@ namespace YooAsset.Editor
|
||||||
EditorTools.CopyFile(sourcePath, destPath, true);
|
EditorTools.CopyFile(sourcePath, destPath, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buildParameters.Parameters.BuildPipeline == EBuildPipeline.ScriptBuildPipeline)
|
if (buildParameters.Parameters.BuildPipeline == EBuildPipeline.ScriptableBuildPipeline)
|
||||||
{
|
{
|
||||||
// 拷贝构建日志
|
// 拷贝构建日志
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,11 +9,11 @@ namespace YooAsset.Editor
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 传统内置构建管线
|
/// 传统内置构建管线
|
||||||
/// </summary>
|
/// </summary>
|
||||||
BuiltInBuildPipeline,
|
BuiltinBuildPipeline,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 可编程构建管线
|
/// 可编程构建管线
|
||||||
/// </summary>
|
/// </summary>
|
||||||
ScriptBuildPipeline,
|
ScriptableBuildPipeline,
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue