# TryGetLatestBuild(out GUID)

> Attempts to get the GUID of the most recent build.

## Definition

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

## TryGetLatestBuild(GUID)

```csharp
public static bool TryGetLatestBuild(out GUID latestBuildSessionGuid)
```

### Parameters

**** (GUID): When this method returns, contains the GUID of the most recent build if found.

### Returns

| Type                                                          | Description                                                         |
| ------------------------------------------------------------- | ------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if a build was found; `false` if the build history is empty. |
