# GetPropertyString

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

## Definition

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

## GetPropertyString(string, BuildTargetGroup)

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

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

```csharp
public static string GetPropertyString(string name, BuildTargetGroup target)
```

### Parameters

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

### Returns

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

### Remarks

Additional Resources: [PlayerSettings.SetPropertyString](/engine/6000.5/script-reference/unityeditor/playersettings/setpropertystring.md).

## GetPropertyString(string)

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

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

```csharp
public static string GetPropertyString(string name)
```

### Parameters

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

### Returns

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

### Remarks

Additional Resources: [PlayerSettings.SetPropertyString](/engine/6000.5/script-reference/unityeditor/playersettings/setpropertystring.md).
