# SetPropertyString

> Sets a PlayerSettings named string property.

## Definition

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

## SetPropertyString(string, string, BuildTargetGroup)

Sets a PlayerSettings named string property.

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

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

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the property.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Value of the property (string).**** (\[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.GetPropertyString](/engine/6000.0/script-reference/unityeditor/playersettings/getpropertystring.md).

## SetPropertyString(string, string)

Sets a PlayerSettings named string property.

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

```csharp
public static void SetPropertyString(string name, string value)
```

### Parameters

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

### Remarks

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

## SetPropertyString(string, string, BuildTarget)

Sets a PlayerSettings named string property.

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

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

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the property.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Value of the property (string).**** (\[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.GetPropertyString](/engine/6000.0/script-reference/unityeditor/playersettings/getpropertystring.md).
