# DeviceSimulator

> Class for interacting with a Device Simulator window from a script.

## Definition

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

```csharp
public class DeviceSimulator
```

## Remarks

You can get an instance of this class by extending [DeviceSimulatorPlugin](/engine/6000.6/script-reference/unityeditor/devicesimulation/devicesimulatorplugin.md).

## Events

| Member                                                                                                               | Description                                                                                                                                                  |
| -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [deviceChanged](/engine/6000.6/script-reference/unityeditor/devicesimulation/devicesimulator/devicechanged.md)       | 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. |
| [touchScreenInput](/engine/6000.6/script-reference/unityeditor/devicesimulation/devicesimulator/touchscreeninput.md) | Event invoked when the screen of the simulated device is clicked.                                                                                            |
