update asset bundle builder

This commit is contained in:
hevinci
2023-03-21 19:34:00 +08:00
parent 254da59b7a
commit c40224b454
2 changed files with 5 additions and 3 deletions

View File

@@ -37,14 +37,16 @@ namespace YooAsset.Editor
{
_buildWatch = Stopwatch.StartNew();
var taskAttribute = task.GetType().GetCustomAttribute<TaskAttribute>();
BuildLogger.Log($"---------------------------------------->{taskAttribute.Desc}<---------------------------------------");
if (taskAttribute != null)
BuildLogger.Log($"---------------------------------------->{taskAttribute.Desc}<---------------------------------------");
task.Run(context);
_buildWatch.Stop();
// 统计耗时
int seconds = GetBuildSeconds();
TotalSeconds += seconds;
BuildLogger.Log($"{taskAttribute.Desc}耗时:{seconds}秒");
if (taskAttribute != null)
BuildLogger.Log($"{taskAttribute.Desc}耗时:{seconds}秒");
}
catch (Exception e)
{