Search Unity

How to tell if the application is quitting or scene is changing from editor script?

Discussion in 'Scripting' started by cjddmut, Mar 2, 2014.

  1. cjddmut

    cjddmut

    Joined:
    Nov 19, 2012
    Posts:
    120
    How could I tell in an editor script if the application is exiting as well as the scene is changing? Say if I needed to change something before either event happened.

    Thanks!
    C.J.
     
  2. exiguous

    exiguous

    Joined:
    Nov 21, 2010
    Posts:
    1,187
  3. cjddmut

    cjddmut

    Joined:
    Nov 19, 2012
    Posts:
    120
    Unfortunately I don't want to leverage any MonoBahavior scripts since I do not want to attach it to any object.
     
  4. cjddmut

    cjddmut

    Joined:
    Nov 19, 2012
    Posts:
    120
unityunity