# TryGetParentBuild(GUID, out GUID)

> Attempts to get the build that a build ran inside.

## Definition

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

## TryGetParentBuild(GUID, GUID)

```csharp
public static bool TryGetParentBuild(GUID buildSessionGuid, out GUID parentBuildSessionGuid)
```

### Parameters

**** (GUID): The unique session GUID of the build to look up.**** (GUID): When this method returns, contains the session GUID of the build it ran inside, if found.

### Returns

| Type                                                          | Description                                                                                       |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the build is tracked in the build history and has a recorded parent; otherwise `false`. |

### Remarks

The parent is recorded when the build runs. The value is returned regardless of whether the parent build is actually still present in the build history. For example it could reference a build that has already been deleted by the retention policy.

Additional Resources: [BuildHistory.GetChildBuilds](/engine/7000.0/script-reference/unityeditor/build/buildhistory/getchildbuilds.md)
