private static void MenuBuild(IEnumerable <WorkerPlatform> platforms, BuildEnvironment environment) { // Delaying build by a frame to ensure the editor has re-rendered the UI to avoid odd glitches. EditorApplication.delayCall += () => { Debug.Log("Generating build configuration"); SpatialCommands.GenerateBuildConfiguration(); foreach (var platform in platforms) { WorkerBuilder.BuildWorkerForEnvironment(platform, environment); } Debug.LogFormat("Completed build for {0} target", environment); }; }
public static void Clean() { WorkerBuilder.Clean(); Debug.Log("Clean completed"); }