文档

Unity Engine

Unity Engine

SetPropertyBool

This is now obsolete. Use an explicit API instead. For example, PlayerSettings.WebGL.useEmbeddedResources.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

SetPropertyBool(string, bool, BuildTargetGroup)

This is now obsolete. Use an explicit API instead. For example, PlayerSettings.WebGL.useEmbeddedResources.
警告
Deprecated. Use explicit API instead.
public static void SetPropertyBool(string name, bool value, BuildTargetGroup target)

Parameters

name

Name of the property.

value

Value of the property (bool).

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

Remarks

Additional Resources: PlayerSettings.GetPropertyBool.

SetPropertyBool(string, bool)

This is now obsolete. Use an explicit API instead. For example, PlayerSettings.WebGL.useEmbeddedResources.
警告
Deprecated. Use explicit API instead.
public static void SetPropertyBool(string name, bool value)

Parameters

name

Name of the property.

value

Value of the property (bool).

Remarks

Additional Resources: PlayerSettings.GetPropertyBool.

SetPropertyBool(string, bool, BuildTarget)

This is now obsolete. Use an explicit API instead. For example, PlayerSettings.WebGL.useEmbeddedResources.
警告
Deprecated. Use explicit API instead.
public static void SetPropertyBool(string name, bool value, BuildTarget target)

Parameters

name

Name of the property.

value

Value of the property (bool).

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

Remarks

Additional Resources: PlayerSettings.GetPropertyBool.