# GetPropertyInt

> Returns a PlayerSettings named int 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

## GetPropertyInt(string, BuildTargetGroup)

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

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

```csharp
public static int GetPropertyInt(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                        |
| ---------------------------------------------------------- | ---------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The current value of the property. |

### Remarks

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

## GetPropertyInt(string)

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

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

```csharp
public static int GetPropertyInt(string name)
```

### Parameters

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

### Returns

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

### Remarks

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