static BuildPipelineExecutor() { PlayerSettingsSnapshot.ApplySnapshot(); QuickUnityEditorEventsWatcher watcher = QuickUnityEditorEventsWatcher.Observe(); watcher.BuildPipeline.OnProcessScene.AddListener(onProcessScene); watcher.BuildPipeline.OnPreprocessBuild.AddListener(onPreprocessBuild); watcher.BuildPipeline.OnPostprocessBuild.AddListener(onPostprocessBuild); }
private static void onPostprocessBuild(BuildTarget target, string pathToBuildProject) { Debug.Log("Starting to perform Postprocess build tasks for {0} platform.", target); PlayerSettingsSnapshot.ApplySnapshot(); }