parent
2d5854ed58
commit
41761f0a97
|
@ -18,6 +18,16 @@ namespace YooAsset.Editor
|
||||||
/// 生成代码防裁剪配置
|
/// 生成代码防裁剪配置
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool WriteLinkXML = true;
|
public bool WriteLinkXML = true;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 缓存服务器地址
|
||||||
|
/// </summary>
|
||||||
|
public string CacheServerHost;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 缓存服务器端口
|
||||||
|
/// </summary>
|
||||||
|
public int CacheServerPort;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -100,11 +100,19 @@ namespace YooAsset.Editor
|
||||||
else
|
else
|
||||||
throw new System.NotImplementedException(Parameters.CompressOption.ToString());
|
throw new System.NotImplementedException(Parameters.CompressOption.ToString());
|
||||||
|
|
||||||
if (Parameters.BuildMode == EBuildMode.ForceRebuild)
|
|
||||||
buildParams.UseCache = false;
|
|
||||||
if (Parameters.DisableWriteTypeTree)
|
if (Parameters.DisableWriteTypeTree)
|
||||||
buildParams.ContentBuildFlags |= UnityEditor.Build.Content.ContentBuildFlags.DisableWriteTypeTree;
|
buildParams.ContentBuildFlags |= UnityEditor.Build.Content.ContentBuildFlags.DisableWriteTypeTree;
|
||||||
|
|
||||||
|
if(Parameters.BuildMode == EBuildMode.ForceRebuild)
|
||||||
|
{
|
||||||
|
buildParams.UseCache = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
buildParams.UseCache = true;
|
||||||
|
buildParams.CacheServerHost = Parameters.SBPParameters.CacheServerHost;
|
||||||
|
buildParams.CacheServerPort = Parameters.SBPParameters.CacheServerPort;
|
||||||
|
}
|
||||||
buildParams.WriteLinkXML = Parameters.SBPParameters.WriteLinkXML;
|
buildParams.WriteLinkXML = Parameters.SBPParameters.WriteLinkXML;
|
||||||
|
|
||||||
return buildParams;
|
return buildParams;
|
||||||
|
|
Loading…
Reference in New Issue