# GetPropertyBool

> This is now obsolete. Use an explicit API instead. For example, PlayerSettings.WebGL.useEmbeddedResources.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

## GetPropertyBool(string, BuildTargetGroup)

This is now obsolete. Use an explicit API instead. For example, PlayerSettings.WebGL.useEmbeddedResources.

> **Warning:**
>
> **Deprecated.** Use explicit API instead.

```csharp
public static bool GetPropertyBool(string name, BuildTargetGroup target)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the property.**** (\[BuildTargetGroup]\(/engine/6000.0/script-reference/unityeditor/buildtargetgroup)): BuildTarget for which the property should apply (use default value BuildTargetGroup.Unknown to apply to all targets).

### Returns

| Type                                                          | Description                        |
| ------------------------------------------------------------- | ---------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | The current value of the property. |

### Remarks

Additional Resources: [PlayerSettings.SetPropertyBool](/engine/6000.0/script-reference/unityeditor/playersettings/setpropertybool.md).

## GetPropertyBool(string)

This is now obsolete. Use an explicit API instead. For example, PlayerSettings.WebGL.useEmbeddedResources.

> **Warning:**
>
> **Deprecated.** Use explicit API instead.

```csharp
public static bool GetPropertyBool(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the property.

### Returns

| Type                                                          | Description                        |
| ------------------------------------------------------------- | ---------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | The current value of the property. |

### Remarks

Additional Resources: [PlayerSettings.SetPropertyBool](/engine/6000.0/script-reference/unityeditor/playersettings/setpropertybool.md).
