2025-04-14 12:18:19 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using Stary.Evo.Editor;
|
|
|
|
|
|
using UnityEditor;
|
|
|
|
|
|
using UnityEditor.Build;
|
|
|
|
|
|
using UnityEditor.Callbacks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Stary.Evo
|
|
|
|
|
|
{
|
|
|
|
|
|
// 实现接口的方式
|
|
|
|
|
|
public class BuildReport : IPostprocessBuildWithReport, IPreprocessBuildWithReport
|
|
|
|
|
|
{
|
|
|
|
|
|
public int callbackOrder { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public void OnPreprocessBuild(UnityEditor.Build.Reporting.BuildReport report)
|
|
|
|
|
|
{
|
|
|
|
|
|
// build前
|
2025-04-14 14:40:32 +08:00
|
|
|
|
|
2025-04-14 12:18:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void OnPostprocessBuild(UnityEditor.Build.Reporting.BuildReport report)
|
|
|
|
|
|
{
|
|
|
|
|
|
// build完成后
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|