Created
April 1, 2015 20:29
-
-
Save jonathanpeppers/0d6e43ca794a92ed1ded to your computer and use it in GitHub Desktop.
Simple Unity3D build script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BuildScript | |
{ | |
static void Android() | |
{ | |
BuildPipeline.BuildPlayer(GetScenes(), "your.apk", BuildTarget.Android, BuildOptions.None); | |
} | |
static string[] GetScenes() | |
{ | |
return EditorBuildSettings.scenes.Where(s => s.enabled).Select(s => s.path).ToArray(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment