# FindShaderByName(string)

> Override for customizing the behavior of the Shader.Find function.

## Definition

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

```csharp
protected virtual Shader FindShaderByName(string name)
```

### Parameters

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

### Returns

| Type                                                            | Description                                                               |
| --------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [Shader](/engine/6000.7/script-reference/unityengine/shader.md) | The shader that matches the specified name, or null if no shader matches. |
