# ContentBuildInterface

> Low level interface for building content for Unity.

## Definition

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

```csharp
public static class ContentBuildInterface
```

## Remarks

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.6/manual/packages-list/upm-ui-window/upm-ui.md).

## Static Methods

| Method                                                                                                                                                                      | Description                                                                                                                                                                                                                                                                        |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [ArchiveAndCompress](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/archiveandcompress.md)                                                 | Create a Unity archive file, containing the content of one or more resource files.                                                                                                                                                                                                 |
| [CalculateBuildUsageTags](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/calculatebuildusagetags.md)                                       | Calculates the build usage of a set of objects.                                                                                                                                                                                                                                    |
| [CalculatePlayerDependenciesForScene](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/calculateplayerdependenciesforscene.md)               | Calculates the Scene dependency information.                                                                                                                                                                                                                                       |
| [CalculatePlayerSerializationHashForType](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/calculateplayerserializationhashfortype.md)       | Returns a unique hash for a given type's serialized layout.                                                                                                                                                                                                                        |
| [CombineExtractedTypeTreeDataFiles](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/combineextractedtypetreedatafiles.md)                   | Combines multiple TypeTree archive files into a single archive.  All duplicated entries are removed.                                                                                                                                                                               |
| [GenerateAssetBundleBuilds](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/generateassetbundlebuilds.md)                                   | Returns an array of AssetBundleBuild structs that detail the current AssetBundle layout, as set through the Inspector and stored in the AssetDatabase.                                                                                                                             |
| [GetGlobalUsageFromActiveScene](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/getglobalusagefromactivescene.md)                           | Gets information about the lighting and render settings in the active scene.                                                                                                                                                                                                       |
| [GetGlobalUsageFromGraphicsSettings](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/getglobalusagefromgraphicssettings.md)                 | Returns the global usage information calculated by the Shader Stripping section of Graphics Settings.                                                                                                                                                                              |
| [GetPlayerAssetRepresentations](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/getplayerassetrepresentations.md)                           | Returns a list of visible objects directly contained inside of an asset.                                                                                                                                                                                                           |
| [GetPlayerDependenciesForObject](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/getplayerdependenciesforobject.md)                         | Returns a list of objects referenced by an object.                                                                                                                                                                                                                                 |
| [GetPlayerDependenciesForObjects](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/getplayerdependenciesforobjects.md)                       | Returns a list of objects referenced by an object.                                                                                                                                                                                                                                 |
| [GetPlayerObjectIdentifiersInAsset](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/getplayerobjectidentifiersinasset.md)                   | Returns a list of objects directly contained inside of an asset.                                                                                                                                                                                                                   |
| [GetPlayerObjectIdentifiersInSerializedFile](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/getplayerobjectidentifiersinserializedfile.md) | Returns a list of objects directly contained inside of a loose serialized file.                                                                                                                                                                                                    |
| [GetTypeForObject](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/gettypeforobject.md)                                                     | Returns the System.Type of the [ObjectIdentifier](/engine/6000.6/script-reference/unityeditor/build/content/objectidentifier.md) specified by `objectID`.                                                                                                                          |
| [GetTypeForObjects](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/gettypeforobjects.md)                                                   | Returns the System.Type of the [ObjectIdentifier](/engine/6000.6/script-reference/unityeditor/build/content/objectidentifier.md)s and the referenced [SerializeReference](/engine/6000.6/script-reference/unityengine/serializereference.md) class types specified by `objectIDs`. |
| [GetTypesForObject](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/gettypesforobject.md)                                                   | Returns the System.Type of the [ObjectIdentifier](/engine/6000.6/script-reference/unityeditor/build/content/objectidentifier.md) and the referenced [SerializeReference](/engine/6000.6/script-reference/unityengine/serializereference.md) class types specified by `objectID`.   |
| [LoadTypeTreeDataHashesFromFile](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/loadtypetreedatahashesfromfile.md)                         | Loads the content hashes from a TypeTree archive file.                                                                                                                                                                                                                             |
| [ObjectIsSupportedInBuild](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/objectissupportedinbuild.md)                                     | Validates if the object is supported in the build.                                                                                                                                                                                                                                 |
| [StartProfileCapture](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/startprofilecapture.md)                                               | Starts a profile capture to record content build profile events.                                                                                                                                                                                                                   |
| [StopProfileCapture](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/stopprofilecapture.md)                                                 | Returns an array of ContentBuildProfileEvent structs that contain information for each occuring event. Also stops the profile capture.                                                                                                                                             |
| [StripTypeTreeDataFromFile](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/striptypetreedatafromfile.md)                                   | Creates a new TypeTree archive that contains only the hashes and data from the source file that are not in the array of hashes passed in.                                                                                                                                          |
| [WriteSceneSerializedFile](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/writesceneserializedfile.md)                                     | Writes Scene objects to a serialized file on disk.                                                                                                                                                                                                                                 |
| [WriteSerializedFile](/engine/6000.6/script-reference/unityeditor/build/content/contentbuildinterface/writeserializedfile.md)                                               | Writes objects to a serialized file on disk.                                                                                                                                                                                                                                       |
