# ApplyRevertGUI()

> Adds 'Apply' and 'Revert' buttons to the Editor.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.AssetImporters](/engine/6000.7/script-reference/unityeditor/assetimporters.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
protected void ApplyRevertGUI()
```

### Remarks

Call this method from the OnInspectorGUI event handler, because this is where the Apply/Revert buttons are placed in the Editor. You can't override this method but you can inject custom behavior by re-implementing OnApplyRevertGUI event handler method.

### Examples

```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.AssetImporters;

public class ExampleScript : ScriptedImporterEditor
{
    public override void OnInspectorGUI()
    {
        serializedObject.Update();

        // Draw custom GUI

        serializedObject.ApplyModifiedProperties();

        ApplyRevertGUI();
    }
}
```
