Version: 2017.2
public void OnProcessScene (SceneManagement.Scene scene);

Parameters

scene The current Scene being processed.

Description

Implement this function to receive a callback for each Scene during the build.

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); } }