# SetPropertyInt

> Sets a PlayerSettings named int property.

## Definition

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

## SetPropertyInt(string, int, BuildTargetGroup)

Sets a PlayerSettings named int property.

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

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

### Parameters

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

### Remarks

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

## SetPropertyInt(string, int)

Sets a PlayerSettings named int property.

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

```csharp
public static void SetPropertyInt(string name, int value)
```

### Parameters

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

### Remarks

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

## SetPropertyInt(string, int, BuildTarget)

Sets a PlayerSettings named int property.

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

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

### Parameters

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