- Home /
Running bash script to build a plugin before building Unity project
I have a bash script to build an Android plugin that is used by a Unity project. I want to get Unity to run the script when I click on "Build and Run" to build and run the Android Unity project. How can I do this?
Answer by Graham-Dunnett · Oct 15, 2013 at 09:44 PM
The build process can be invoked from script, see:
http://docs.unity3d.com/Documentation/ScriptReference/BuildPipeline.BuildPlayer.html
Copy the example from that page, and before the call to BuildPlayer
get your script executed, I guess with Process.Start()
.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Unity Cloud Build "Post-Build Script configured, but not found" 0 Answers
Running batch script or .exe after "build&run" 1 Answer
Player Controlled Builder 0 Answers
Player Controlled Builder 1 Answer