Created
July 2, 2018 11:07
-
-
Save robsondepaula/cb29d63f4d7edea2466c82a5af3ae9c5 to your computer and use it in GitHub Desktop.
Retrieve SDK location for Unity Build Scripts
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
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