- Home /
Is there a some sort of OnBuild() event for the editor?
My game is currently being distributed in a lot of different versions every once in a while. I would like to know if there is a sort of event, or callback (I don't really know the difference, so if someone could point that out in a comment it'd be great!) that is called once you press the 'build' button in the build options window. I wish to use this to ask some 'questions' like the version number and changelog. That would streamline the build process immensely! If there isn't such an event, any ideas how to do this sort of timing? Thanks!
P.S. I can figure out all of the editor stuff; I really just need to know the correct trigger.
Answer by meat5000 · Nov 21, 2015 at 04:33 PM
Use Grahams suggestion on the page:
http://answers.unity3d.com/questions/495007/editor-script-that-executes-before-build.html
Of course this is two years old and better answers may exist.
Thanks I'll read into that! Can't believe I missed that :/
Your answer
![](https://koobas.hobune.stream/wayback/20220612045904im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Changing File Structure Of Final Output Build 0 Answers
Getting the current BuildOptions 1 Answer
How do I toggle the Internal Profiler from a build script? 0 Answers