Change keystore path from code?
Hello. I want to build my application using PlayerSettings.Android and BuildPipeline. In Unity Editor in Player Settings > Android > Publishing Settings I can use existing key and press a button "Browse Keystore", then find needed key, enter keystore password, then chose this key in alias and enter password. In PlayerSettings.Android there are following fields: keyaliasName, keyaliasPass, keystoreName, keystorePass. How do I use PlayerSettings.Android to browse and select needed key from my script?
Answer by kork · Feb 09, 2016 at 07:56 PM
Fill the following data into the fields:
keyStoreName
- full path to the key store you want to usekeyStorePass
- password for the keystorekeyaliasName
- name of the key that you want to usekeyaliasPass
- password for the key you want to use (if any)
You may also want to have a look at uTomate, which has an action where you can conveniently automate the modification of all player settings for android (including the key settings) through the editor without scripting (http://www.ancientlightstudios.com/utomate/documentation/actiondocs/5.3/set_android_player_settings.html).
Your answer
Follow this Question
Related Questions
Create keystore and can not build android apk 0 Answers
Chromecast plugin crashes the game 0 Answers
Monetization breaks iOS build in XCode. Also breaks Android build. 1 Answer
Ads aren't showing in my builds/showing placeholder 0 Answers
getting stuck at build with Il2cpp.exe, crashing everytime 0 Answers