Running script before building on Unity

Viewed 12679

Is there a way to run a script method automatically before I build via File > Build Settings... > Build?

I know I can make a menu item to call my method and call build afterwards.

2 Answers
Related