mirror of https://github.com/tuyoogame/YooAsset
update asset bundle builder
parent
254da59b7a
commit
c40224b454
|
@ -37,6 +37,7 @@ namespace YooAsset.Editor
|
|||
{
|
||||
_buildWatch = Stopwatch.StartNew();
|
||||
var taskAttribute = task.GetType().GetCustomAttribute<TaskAttribute>();
|
||||
if (taskAttribute != null)
|
||||
BuildLogger.Log($"---------------------------------------->{taskAttribute.Desc}<---------------------------------------");
|
||||
task.Run(context);
|
||||
_buildWatch.Stop();
|
||||
|
@ -44,6 +45,7 @@ namespace YooAsset.Editor
|
|||
// 统计耗时
|
||||
int seconds = GetBuildSeconds();
|
||||
TotalSeconds += seconds;
|
||||
if (taskAttribute != null)
|
||||
BuildLogger.Log($"{taskAttribute.Desc}耗时:{seconds}秒");
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
|
@ -582,7 +582,7 @@ namespace YooAsset.Editor
|
|||
/// <param name="key">关键字</param>
|
||||
/// <param name="includeKey">分割的结果里是否包含关键字</param>
|
||||
/// <param name="searchBegin">是否使用初始匹配的位置,否则使用末尾匹配的位置</param>
|
||||
private static string Substring(string content, string key, bool includeKey, bool firstMatch = true)
|
||||
public static string Substring(string content, string key, bool includeKey, bool firstMatch = true)
|
||||
{
|
||||
if (string.IsNullOrEmpty(key))
|
||||
return content;
|
||||
|
|
Loading…
Reference in New Issue