# InSceneAssetUtility

> Provides methods related to in-scene assets.

## Definition

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

```csharp
public static class InSceneAssetUtility
```

## Remarks

In-scene assets are scene objects that are referenced by one or more objects in a scene and are of an asset type. Examples of asset types include, but are not limited to, [Mesh](/engine/6000.6/script-reference/unityengine/mesh.md), [Material](/engine/6000.6/script-reference/unityengine/material.md), and [ScriptableObject](/engine/6000.6/script-reference/unityengine/scriptableobject.md). If in-scene assets are not converted to project assets (with [AssetDatabase.CreateAsset](/engine/6000.6/script-reference/unityeditor/assetdatabase/createasset.md), for example), they are serialized inside scene files. This can cause unwanted increases in the scene file size. `InSceneAssetUtility` provides methods to identify and manage such objects.

## Static Methods

| Method                                                                                                                        | Description                                                                                   |
| ----------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [CollectInSceneAssets](/engine/6000.6/script-reference/unityeditor/insceneassetutility/collectinsceneassets.md)               | Gets information about in-scene assets referenced by the given GameObjects or scene.          |
| [CreateAssetFromInSceneAsset](/engine/6000.6/script-reference/unityeditor/insceneassetutility/createassetfrominsceneasset.md) | Creates a project asset from the given in-scene asset and saves it at the provided file path. |
| [CreateInSceneAssetFromAsset](/engine/6000.6/script-reference/unityeditor/insceneassetutility/createinsceneassetfromasset.md) | Creates an in-scene asset object from the given project asset.                                |
| [IsInSceneAsset](/engine/6000.6/script-reference/unityeditor/insceneassetutility/isinsceneasset.md)                           | Checks if the given object is an in-scene asset.                                              |
