文档

Unity Engine

Unity Engine

SetPropertyString

Sets a PlayerSettings named string property.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

SetPropertyString(string, string, BuildTargetGroup)

Sets a PlayerSettings named string property.
警告
Deprecated. Use explicit API instead.
public static void SetPropertyString(string name, string value, BuildTargetGroup target)

Parameters

name

Name of the property.

value

Value of the property (string).

BuildTarget for which the property should apply (use default value BuildTargetGroup.Unknown to apply to all targets).

Remarks

Additional Resources: PlayerSettings.GetPropertyString.

SetPropertyString(string, string)

Sets a PlayerSettings named string property.
警告
Deprecated. Use explicit API instead.
public static void SetPropertyString(string name, string value)

Parameters

name

Name of the property.

value

Value of the property (string).

Remarks

Additional Resources: PlayerSettings.GetPropertyString.

SetPropertyString(string, string, BuildTarget)

Sets a PlayerSettings named string property.
警告
Deprecated. Use explicit API instead.
public static void SetPropertyString(string name, string value, BuildTarget target)

Parameters

name

Name of the property.

value

Value of the property (string).

BuildTarget for which the property should apply (use default value BuildTargetGroup.Unknown to apply to all targets).

Remarks

Additional Resources: PlayerSettings.GetPropertyString.