Skip to content

Instantly share code, notes, and snippets.

@CapitanLiteral
Created January 9, 2019 10:44
Show Gist options
  • Save CapitanLiteral/c060aa783caec1cfc3777e8289e13049 to your computer and use it in GitHub Desktop.
Save CapitanLiteral/c060aa783caec1cfc3777e8289e13049 to your computer and use it in GitHub Desktop.
using UnityEditor;
// this will set player defines when building from command line
public static class PlaceholderBuild
{
// -------------------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------------------
[MenuItem("Build/Switch FULL version")]
public static void buildVersion_PlaceholderFull()
{
// set before build phase
PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.Android, "PLACEHOLDER_FULL");
}
// -------------------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------------------
[MenuItem("Build/Switch LITE version")]
public static void buildVersion_PlaceholderLite()
{
// set before build phase
PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.Android, "PLACEHOLDER_DEMO");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment