When I go to build/publish a game, Unity does some scene swapping. This causes a couple of issues with my code that I would like to automatically fix by programmatically detecting that a publish has happened.
I have similar code for detecting entering/leaving play/pause mode, recompiling assets, and saving/loading a scene.
Does anyone know of a good way to detect a build/publish and run code after the build/publish has occurred?
Thanks
↧