# Awake()

> Called as the new window is opened.

## Definition

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

```csharp
public void Awake()
```

### Remarks

Awake() message is called as a new editor window starts. This is similar to how an Awake() is called as an GameObject starts.

### Examples

```csharp

{code Modules/UIElements/Tests/UIElementsExamples/Assets/EditorWindowCodeExamples/AwakeExample.cs}
```
