# GetDependency(string)

> Returns the dependency shader.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public Shader GetDependency(string name)
```

### Parameters

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

### Returns

| Type                                                            | Description |
| --------------------------------------------------------------- | ----------- |
| [Shader](/engine/6000.0/script-reference/unityengine/shader.md) |             |

### Remarks

The shader source file lists dependency shaders in the "DependencyName" = "ShaderName" format.
