# BuildUsageCache

> Caching object for the Scriptable Build Pipeline.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Build.Content](/engine/6000.5/script-reference/unityeditor/build/content.md)
* **Assembly:** UnityEditor.CoreModule
* **Implements:** [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public class BuildUsageCache : IDisposable
```

## Remarks

This class helps improve performance when calling the [ContentBuildInterface.CalculateBuildUsageTags](/engine/6000.5/script-reference/unityeditor/build/content/contentbuildinterface/calculatebuildusagetags.md) api multiple times.

Note: this class and its members exist to provide low-level support for the **Scriptable Build Pipeline** package. This is intended for internal use only; use the [Scriptable Build Pipeline package](https://docs.unity3d.com/Packages/com.unity.scriptablebuildpipeline@latest/index.html) to implement a fully featured build pipeline. You can install this via the [Package Manager window](/engine/6000.5/manual/packages-list/upm-ui-window/upm-ui.md).

## Constructors

| Constructor                                                                                            | Description         |
| ------------------------------------------------------------------------------------------------------ | ------------------- |
| [BuildUsageCache()](/engine/6000.5/script-reference/unityeditor/build/content/buildusagecache/ctor.md) | Default contructor. |

## Methods

| Method                                                                                          | Description                                                |
| ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [Dispose](/engine/6000.5/script-reference/unityeditor/build/content/buildusagecache/dispose.md) | Dispose the BuildUsageCache destroying all internal state. |
