- Home /
Doing stuff before Build starts
Hi,
I would like to be able to perform some operations before a build starts, e.g validations, manipulating some Android Manifest, etc..
I know I can do stuff after build using the [PostProcessBuild] attribute.
Is there something like PreProcessBuild? I couldn't find it.
What are my options?
Thanks
Answer by oatsbarley · Jan 25, 2014 at 05:39 PM
If you have Unity Pro, you can use `BuildPipline.BuildPlayer` to start the build process after you've performed your pre-build operations. There isn't currently any pre-build event that you can hook into, so this is really the only way to do it.
Thanks, any idea if it's popular with plugins to offer their own Build menu items?
I can't say I've seen any, but there's no reason you couldn't do it for your plugin :)
Your answer
![](https://koobas.hobune.stream/wayback/20220613131413im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
A node in a childnode? 1 Answer
After Build, instantiate does not work 1 Answer