Device Simulator | Unity Documentation
docs.unity3d.com

    Device Simulator

    Overview

    Device Simulator is an alternative to the traditional Unity editor Game window. By simulating Screen and SystemInfo class behavior, Device Simulator aims to give an accurate picture of how an app will look on a device.

    Requirements

    • Compatible with Unity 2019.3 or above.

    Supported Features

    • Screen class simulation.
    • SystemInfo class simulation.
    • Show precise screen shape, with notch and rounded corners.

    Installing Device Simulator Package

    To install Device Simulator package, follow the instructions in the Package Manager documentation.

    You can access Device Simulator window in Unity Editor via

    • Menu: Window > General > Device Simulator
    • Menu: Simulator menu in Game view toolbar to switch to Device Simulator view.

    Using Device Simulator

    Device Simulator window

    1. Game view mode

    Switch between Game view and Simulator view.

    2. Device selection

    Select from the available devices.

    3. Restart

    Initialise simulation of Screen and SystemInfo classes using Player Settings without causing a domain reload.

    4. Scale

    Controls how big the device appears inside the

    5. Fit to Screen

    Automatically scale device to fit snugly inside the window.

    6. Rotate

    Physically rotate the device. Depending on whether auto rotation is enabled or disabled, the actual picture may or may not rotate together with the device.

    Highlight Safe Area

    7. Highlight Safe Area

    Draw a border around the current Screen.safeArea

    Highlight Safe Area

    8. Device Specifications

    Shows the most important data of the currently simulated device:

    • Device OS
    • Device CPU/GPU
    • Device Resolution

    9. Screen Settings

    Allow viewing and changing the values of the Screen class.

    10. Player Settings

    Device Simulator Player Settings override the real Player Settings. Especially useful for those that don't have Android or iOS support installed. This menu includes all Player Settings that currently affect the simulation.

    • Start in Fullscreen
    • Resolution Scaling Mode
    • Default Orientations
    • Allowed Orientations
    • Auto Graphics API
    • Graphics API

    Use Player Settings controls whether the real or simulated Player Settings are used.

    Document revision history

    Date Reason
    Sep 23, 2019 Document Updated. Matches package version 1.0.0-preview
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023