コード例 #1
0
        static BuildPipelineExecutor()
        {
            PlayerSettingsSnapshot.ApplySnapshot();
            QuickUnityEditorEventsWatcher watcher = QuickUnityEditorEventsWatcher.Observe();

            watcher.BuildPipeline.OnProcessScene.AddListener(onProcessScene);
            watcher.BuildPipeline.OnPreprocessBuild.AddListener(onPreprocessBuild);
            watcher.BuildPipeline.OnPostprocessBuild.AddListener(onPostprocessBuild);
        }
コード例 #2
0
 private static void onPostprocessBuild(BuildTarget target, string pathToBuildProject)
 {
     Debug.Log("Starting to perform Postprocess build tasks for {0} platform.", target);
     PlayerSettingsSnapshot.ApplySnapshot();
 }