Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PlayerSettings.GetPropertyBool

Switch to Manual
public static function GetPropertyBool(name: string, target: BuildTargetGroup = BuildTargetGroup.Unknown): bool;

Parameters

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

Returns

bool The current value of the property.

Description

Returns a PlayerSettings named bool property (with an optional build target it should apply to).

See Also: SetPropertyBool.