文档

Unity Engine

Unity Engine

SetCertificate(string, string)

Sets the certificate to use to sign the Universal Windows Platform application package.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static bool SetCertificate(string path, string password)

Parameters

path

The relative Asset path to the Certificate file (.pfx).

password

The certificate password. If the certificate does not require a password, use an empty string.

Returns

Type

Description

boolReturns true if Unity successfully updates the certificate. Otherwise, returns false.

Remarks

In the Editor, Unity displays this under Certificate in UWP Player Settings.