Skip to content

Instantly share code, notes, and snippets.

@robsondepaula
Created July 2, 2018 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robsondepaula/cb29d63f4d7edea2466c82a5af3ae9c5 to your computer and use it in GitHub Desktop.
Save robsondepaula/cb29d63f4d7edea2466c82a5af3ae9c5 to your computer and use it in GitHub Desktop.
Retrieve SDK location for Unity Build Scripts
string sdkPath = Environment.GetEnvironmentVariable ("ANDROID_HOME");
if (sdkPath == null) {
sdkPath = EditorPrefs.GetString ("AndroidSdkRoot");
}
EditorSetup.AndroidSdkRoot = sdkPath;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment