# deviceChanged

> Calls the methods in its invocation list when the simulated device of the device simulator changes. This includes when Unity creates or loads the simulator.

## Definition

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

```csharp
public event Action deviceChanged
```
