Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


The Simulator view

Explains how to use the window that the Device Simulator uses to display the simulation.
Read time 3 minutesLast updated 14 days ago

The Simulator view displays your application on a simulated mobile device. Use it to see how your application appears with the screen shape, resolution, and orientation of that device.

A screenshot of the Simulator view

Using the Simulator view

To open the Simulator view, do one of the following:
  • In the Game view, in the top left corner, use the drop-down menu to switch between the Game view and the Simulator view.
  • In the menu: Window > General > Device Simulator
Unity simulates the device in the Simulator view. To control the simulation, use the toolbar and the Control Panel.

Toolbar

The toolbar is at the top of the Simulator view and contains options that, along with the Control Panel, control the simulation.

The toolbar at the top of the Simulator view.

Control

Description

Game/Simulator viewUse this drop-down menu to switch between the Simulator view and the Game view.
Device selection drop-down menuChoose the device to simulate from the available device definitions.
ScaleZoom in or out on the simulated screen.
Fit to ScreenScale the display to fit inside the window.
RotateSimulates the physical rotation of the device. The image on the device screen rotates together with the device if you enable auto-rotation and if the device supports rotation. Otherwise, if you rotate the device it causes the image to be sideways or upside down. Note: The Device Simulator doesn't support gyroscope simulation.
Safe AreaIndicates whether the view draws a line around the SafeArea of the current device screen.
Play Mode behaviorThis section describes the play mode behavior based on your selection.
This property has the following options:
  • Focused: Shifts focus on the selected Game view while the Editor is in Play mode. Only one Game view can be in focus when you enter Play mode. Using Maximized or Fullscreen on Display mode implies focus on the Maximized Game view. Enabling Focused on a Game view disables it on other Game views.
  • VSync (Game view only): Allows syncing, which is useful when recording a video, for example. Unity attempts to render the Game view at the monitor refresh rate, though this is not guaranteed. When this option is enabled, it is still useful to maximize the Game view in Play mode to hide other views and reduce the number of views that Unity renders.
Enter Play Mode:Choose from the options to determine the settings for the Editor when it enters the Play mode.
This property has the following options:
  • Normally: Views the Game view without forcing focus or maximizing any views to full screen.
  • Maximized: Runs the Play mode with the Simulator view maximized to 100% of the Editor window. Note: This option doesn't create a Simulator view if you disable the Create Game View On Play Editor preference.
Control PanelDisplays and hides the Control Panel.

Control Panel

To open the Control Panel, click Control Panel in the top-right corner of the Toolbar. By default, the Control Panel contains settings for the Application simulated class.

The Device Simulator Control Panel.

Property

Description

System LanguageSpecifies the value to receive from Device.Application.systemLanguage.
Internet ReachabilitySpecifies the value to receive from Device.Application.internetReachability.
On Low MemoryCalls the lowMemory event.
Device Simulator plugins can change the appearance of the control panel and add content and controls. Some packages and features, like Adaptive Performance, contain Device Simulator plugins. Their UI appears in the Control Panel if you install the package or enable the feature. For more information, refer to Device Simulator plugins.