Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

AndroidExternalToolsSettings.keystoresDedicatedLocation

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static string keystoresDedicatedLocation;

Description

Path to a location dedicated to keystores for signing Android applications.

Additional resources: Create a new keystore

using System.IO;
using UnityEngine;
using UnityEditor;
using UnityEditor.Android;

public class KeystoresDedicatedLocationSample { [MenuItem("Build/Set Custom Keystores Location")] public static void SetKeystoresLocation() { // Example custom location. Replace this with the actual path. string customPath = "/path/to/your/keystores";

// Validate the directory before setting it if (Directory.Exists(customPath)) { AndroidExternalToolsSettings.keystoresDedicatedLocation = customPath; Debug.Log($"Custom Keystores Location set to: {AndroidExternalToolsSettings.keystoresDedicatedLocation}"); } else { Debug.LogError($"Invalid Keystores Location. Directory does not exist: {customPath}"); } }

[MenuItem("Build/Get Current Keystores Location")] public static void GetKeystoresLocation() { // Retrieve the currently configured location of the keystores string currentLocation = AndroidExternalToolsSettings.keystoresDedicatedLocation; Debug.Log($"Current Keystores Location: {currentLocation}"); } }