- Home /
Editor hook for opening / closing a scene
Hello, I am attempted to check some properties on my scene file before (or just after) opening and after (or just before) closing the file.
Is there a way to hook into the open/close code for scenes in the editor? I have been pseudo-successful in getting the results I want by checking if the scene has changed during an update call, however this does not work when the user closes Unity.
Any thoughts would be appreciated. Thanks!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613072827im_/https://answers.unity.com/themes/thub/images/avi.jpg)