---
title: ContentDirectoryDiagnostics
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/loading/contentdirectorydiagnostics
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/loading/contentdirectorydiagnostics.md
last_updated: 2026-11-07
generated_at: 2026-11-10T11:16:10.879Z
locale: en-us
---

# ContentDirectoryDiagnostics

> Describes what is loaded from a content directory, including the holds that Unity keeps on its root assets.

## Definition

* **Type:** Class
* **Namespace:** [Unity.Loading](/engine/7000.0/script-reference/unity/loading.md)
* **Assembly:** UnityEngine.ContentLoadModule

```csharp
public static class ContentDirectoryDiagnostics
```

## Remarks

To name the files that a state lists, use the `ContentLayout.json` file of the build that produced the content directory. Its entry whose `StableId` equals [ContentFileIdentity.ToString](/engine/7000.0/script-reference/unity/loading/contentfileidentity/tostring.md) lists the source assets of the file. The layout is in the build's report directory, which [BuildHistory](/engine/7000.0/script-reference/unityeditor/build/buildhistory.md) keeps for builds made in this project. Find the build with [ContentDirectoryLoadInfo.BuildManifestHash](/engine/7000.0/script-reference/unity/loading/contentdirectoryloadinfo/buildmanifesthash.md).

The build history deletes its oldest builds once it holds [BuildHistory.BuildHistoryLimit](/engine/7000.0/script-reference/unityeditor/build/buildhistory/buildhistorylimit.md) builds, and has no builds made on other machines, such as a build server. To diagnose those builds, keep the build report directory with the build output.

## Static Methods

| Method                                                                                                                                  | Description                                                                                                                              |
| --------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| [GetContentDirectoryLoadInfo](/engine/7000.0/script-reference/unity/loading/contentdirectorydiagnostics/getcontentdirectoryloadinfo.md) | Fills a [ContentDirectoryLoadInfo](/engine/7000.0/script-reference/unity/loading/contentdirectoryloadinfo.md) for one content directory. |
