# SetPropertyBool

> 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

## SetPropertyBool(string, bool, BuildTargetGroup)

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

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

```csharp
public static void SetPropertyBool(string name, bool value, BuildTargetGroup target)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the property.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Value of the property (bool).**** (\[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).

### Remarks

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

## SetPropertyBool(string, bool)

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

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

```csharp
public static void SetPropertyBool(string name, bool value)
```

### Parameters

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

### Remarks

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

## SetPropertyBool(string, bool, BuildTarget)

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

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

```csharp
public static void SetPropertyBool(string name, bool value, BuildTarget target)
```

### Parameters

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

### Remarks

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