# subtarget

> The subtarget to build. (optional)

## Definition

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

```csharp
public int subtarget { readonly get; set; }
```

### Remarks

For some BuildTargets the behaviour of a build can be influenced by using this field. The supported values are based on target-specific enums, for example [MobileTextureSubtarget](/engine/6000.0/script-reference/unityeditor/mobiletexturesubtarget.md).

The subtarget can be assigned using the build settings UI.  To build with the current build settings, the [BuildAssetBundlesParameters.targetPlatform](/engine/6000.0/script-reference/unityeditor/buildassetbundlesparameters/targetplatform.md) field should be left unassigned (e.g. with the value 0).

Additional Resources: [EditorUserBuildSettings.standaloneBuildSubtarget](/engine/6000.0/script-reference/unityeditor/editoruserbuildsettings/standalonebuildsubtarget.md), [EditorUserBuildSettings.androidBuildSubtarget](/engine/6000.0/script-reference/unityeditor/editoruserbuildsettings/androidbuildsubtarget.md), [EditorUserBuildSettings.webGLBuildSubtarget](/engine/6000.0/script-reference/unityeditor/editoruserbuildsettings/webglbuildsubtarget.md).
