mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-19 06:40:21 +00:00
Support fast build mode.
支持快速构建模式,真实的实现EditorPlayMode的运行时环境。
This commit is contained in:
@@ -8,6 +8,8 @@ namespace YooAsset.Editor
|
||||
{
|
||||
public class BuildRunner
|
||||
{
|
||||
public static bool EnableLog = true;
|
||||
|
||||
/// <summary>
|
||||
/// 执行构建流程
|
||||
/// </summary>
|
||||
@@ -26,7 +28,7 @@ namespace YooAsset.Editor
|
||||
try
|
||||
{
|
||||
var taskAttribute = task.GetType().GetCustomAttribute<TaskAttribute>();
|
||||
Debug.Log($"---------------------------------------->{taskAttribute.Desc}");
|
||||
Log($"---------------------------------------->{taskAttribute.Desc}");
|
||||
task.Run(context);
|
||||
}
|
||||
catch (Exception e)
|
||||
@@ -41,5 +43,16 @@ namespace YooAsset.Editor
|
||||
// 返回运行结果
|
||||
return succeed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 普通日志输出
|
||||
/// </summary>
|
||||
public static void Log(string info)
|
||||
{
|
||||
if (EnableLog)
|
||||
{
|
||||
UnityEngine.Debug.Log(info);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user