0
Q:

unity editor on scene change

//Unity haven't callback for editor, but you can use this code.

[ExecuteInEditMode]
public class SceneScript : MonoBehaviour {
 
 	//On scene change it will be reseted to false
    bool HasRunOnce = false;
 
    void Update () {
        if (HasRunOnce == false) {
        	//First update after scene changed
            Debug.Log ("One this once.");
            HasRunOnce = true;
        }
    }
}
1

New to Communities?

Join the community