OnPreprocessBuild issue

Firstly, the docs are incorrect in the example - CallbackOrder has incorrect case.

Next, I’m not getting a callback for hitting play in the editor. I absolutely need to do some editor side stuff before the scenes are processed during play or build. It should also fire when I press play as the editor does make a build then.

As a workaround I do my build processing with scene callbacks instead but I’m hoping this is just a silly oversight? Can it be improved?

Interesting find. Thanks for sharing hippocoder. That could explain a very strange anomaly I have been seeing in our project.
Need to double check that.