# Awake()

> This function is called when the Editor script is started.

## Definition

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

```csharp
protected virtual void Awake()
```

### Remarks

Awake is called as the AssetImporterEditor script starts. This happens as the editor is launched and is similar to [MonoBehaviour.Awake()](/engine/6000.6/script-reference/unityengine/monobehaviour/awake.md).

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

public class ExampleScript : AssetImporterEditor
{
    protected override void Awake()
    {
        base.Awake();
        Debug.Log("Awake");
    }
}
```

OnDisable cannot be a co-routine.
