Version: 2021.3
LanguageEnglish
  • C#

PlayerSettings.keyaliasPass

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

Switch to Manual
public static string keyaliasPass;

Description

The password to access the key alias used to sign an Android application.

This is the password for signing an application with a particular key (known as [-keypass <keypass>] on the keytool/jarsigner command line). The keystore file can contain multiple key alias, each representing specific key used to sign the application. The key alias password allows you to access specific keys.

using UnityEngine;
using UnityEditor;
public class KeyAliasPasswordManager : MonoBehaviour
{
    private void Start()
    {
        PlayerSettings.keyaliasPass = "YourKeyAliasPassword";
        Debug.Log("My current key alias password is: " + PlayerSettings.keyaliasPass);
    }
}