scene | The current Scene being processed. |
Implement this function to receive a callback for each Scene during the build.
#pragma strict class MyCustomBuildProcessor implements IProcessScene { int CallbackOrder { return 0; } public function OnProcessScene(scene: UnityEngine.SceneManagement.Scene) { Debug.Log("MyCustomBuildProcessor.OnProcessScene " + scene.name); } }
using UnityEditor; using UnityEditor.Build; using UnityEngine;
class MyCustomBuildProcessor : IProcessScene { public int callbackOrder { get { return 0; } } public void OnProcessScene(UnityEngine.SceneManagement.Scene scene) { Debug.Log("MyCustomBuildProcessor.OnProcessScene " + scene.name); } }
Did you find this page useful? Please give it a rating: