# GetBuildTargetName(BuildTarget)

> Given a BuildTarget will return the well known string representation for the build target platform.

## Definition

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

```csharp
public static string GetBuildTargetName(BuildTarget targetPlatform)
```

### Parameters

**** (\[BuildTarget]\(/engine/6000.6/script-reference/unityeditor/buildtarget)): An instance of the [BuildTarget](/engine/6000.6/script-reference/unityeditor/buildtarget.md) enum.

### Returns

| Type                                                           | Description                                                                                                                  |
| -------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | Target platform name represented by the passed in [BuildTarget](/engine/6000.6/script-reference/unityeditor/buildtarget.md). |
