# DependOnPath(string)

> Allows you to specify that a Scene depends on contents of a source asset at the provided path.

## Definition

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

```csharp
public static void DependOnPath(string path)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The path of the dependency.

### Remarks

Scene rebuild will be triggered if either of the conditions are true:

* The asset at the path changes
* The asset at the path moves.
