# OnCreate()

> Called when Unity creates the Device Simulator window.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.DeviceSimulation](/engine/6000.6/script-reference/unityeditor/devicesimulation.md)
* **Assembly:** UnityEditor.DeviceSimulatorModule

```csharp
public virtual void OnCreate()
```
