# IPreprocessShaders

> Implement this interface to receive a callback before a shader is compiled.

## Definition

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

```csharp
public interface IPreprocessShaders : IOrderedCallback
```

## Remarks

For more information about build callbacks, refer to [Use build callbacks](/engine/6000.0/manual/building-and-publishing/build-customize-build-pipeline/build-callbacks.md).

## Methods

| Method                                                                                                     | Description                                                                         |
| ---------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| [OnProcessShader](/engine/6000.0/script-reference/unityeditor/build/ipreprocessshaders/onprocessshader.md) | Implement this interface to receive a callback before a shader snippet is compiled. |

## Inheritance

**Inherited Members:**

* [IOrderedCallback.callbackOrder](/engine/6000.0/script-reference/unityeditor/build/iorderedcallback/callbackorder.md)
