I have a runtime script that changes a camera viewport based on orientation and SafeArea. When I exit Play Mode, the editor settings for that camera are locked to the last value at runtime. I expected that those values would return to the defaults (prior to entering Play Mode).
The script has the ExecuteInEditMode attribute, which is probably the issue here.
Is there a way to know when you’re exiting Play Mode so that I could have the same scripts perform the reset?