# GetLatestReport()

> Obtains the build report generated by the most recent Player, Content Directory, or AssetBundle build.

## Definition

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

```csharp
public static BuildReport GetLatestReport()
```

### Returns

| Type                                                                                      | Description                                                                                                                                          |
| ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| [BuildReport](/engine/6000.7/script-reference/unityeditor/build/reporting/buildreport.md) | The most recent [BuildReport](/engine/6000.7/script-reference/unityeditor/build/reporting/buildreport.md), or `null` if no build has been performed. |

### Remarks

For Player and Content Directory builds, the build report is loaded from the [BuildHistory](/engine/6000.7/script-reference/unityeditor/build/buildhistory.md) folder. For AssetBundle builds, the build report is loaded from `Library/LastBuild.buildreport`.

To access build reports from earlier builds, use the [BuildHistory](/engine/6000.7/script-reference/unityeditor/build/buildhistory.md) API.
