# GetBuildLocation(BuildTarget)

> Returns the location used for the last saved build.

## Definition

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

```csharp
public static string GetBuildLocation(BuildTarget target)
```

### Parameters

**** (\[BuildTarget]\(/engine/6000.3/script-reference/unityeditor/buildtarget)):&#x20;

### Returns

| Type                                                           | Description |
| -------------------------------------------------------------- | ----------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) |             |

### Remarks

The location is updated when you select **Build** in the [Build Profiles](/engine/6000.3/manual/building-and-publishing/build-settings.md) window and choose a build location using the UI, or call `EditorUserBuildSettings.SetBuildLocation`.
