- Home /
Question by
BouncedPhysical · Oct 19, 2021 at 08:14 PM ·
editorscenescene-loadingeditorwindoweditorscript
Is there a callback for when a scene gets unloaded in the Editor?
Hello guys!
I'd like to run some code when a scene gets unloaded in the editor. Like if I load a new scene by double clicking on a scene asset, I'd like to run some code that modifies the scene (assigns few references automatically) just before the scene gets unloaded - before allowing unity to do its thing and go ahead.
Is there anything like that? Thankss
Comment
Your answer
Follow this Question
Related Questions
Hold Right-Click + "W" or "S" in Scene Editor not working properly!! 1 Answer
'Resource file has already been unloaded' error when exiting application in Editor 1 Answer
Real time scene changes 1 Answer
Particular scene loads fine in the Unity Editor, but unable to load in the executable? 0 Answers
Move objects in scene view before running the game 0 Answers