# DependOnAsset(Object)

> Allows you to specify that a Scene depends on contents of an asset directly provided.

## Definition

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

```csharp
public static void DependOnAsset(Object asset)
```

### Parameters

**** (\[Object]\(/engine/6000.5/script-reference/unityengine/object)): The Unity Object from an asset.

### Remarks

Scene rebuild will be triggered if the condition is true:

* if the asset or any of its dependencies changes.
