# OnDisable()

> Default implementation of OnDisable for RenderPipelineAsset. See ScriptableObject.OnDisable()

## Definition

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

```csharp
protected virtual void OnDisable()
```

### Remarks

Override this function to add your specific OnDisable code. You must call base.OnDisable() as well.
