- Home /
Where can I find programmatic access to Unity's Preferences?
I was wondering how I can get access to the values specified in Unity's Preferences Window? Specifically I'm interested in the Android SDK folder as I want to add a PostProcessBuild step to run adb.
Answer by CasualT_Bossfight · Apr 15, 2019 at 09:47 PM
Found the answer in a few places. My google-fu just wasn't up to the task. For anyone else looking for the answer
EditorPrefs.GetString("AndroidSdkRoot");
Other posts: https://forum.unity.com/threads/accessing-android-sdk-root-location.232077/ https://forum.unity.com/threads/get-path-to-android-sdk-in-external-tools.468334/
Your answer
Follow this Question
Related Questions
Google Cardboard VR Project Says Pixel Phone is Not Compatible Device 1 Answer
Android apk build can install but won't start. 2 Answers
CommandInvokationFailure: Failed to re-package resources. 1 Answer
Getting error while building a project for android 2 Answers
I can't use TTS on Android 11 1 Answer