# GetSubtarget<T>()

> The subtarget that the build was created for.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Build.Reporting](/engine/6000.7/script-reference/unityeditor/build/reporting.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public T GetSubtarget<T>() where T : Enum
```

### Returns

| Type | Description                  |
| ---- | ---------------------------- |
| T    | Returns the subtarget value. |

### Remarks

Valid values for type T are [StandaloneBuildSubtarget](/engine/6000.7/script-reference/unityeditor/standalonebuildsubtarget.md), PS4BuildSubtarget and XboxBuildSubtarget
