Created
January 9, 2019 10:44
-
-
Save CapitanLiteral/c060aa783caec1cfc3777e8289e13049 to your computer and use it in GitHub Desktop.
This file contains 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
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