The Device Simulator is a package for Unity which can display your game on a number of different devices. This is so when you’re developing your game, you can see how it looks on mobile devices, consoles, and various other devices. The default Unity game window already has the ability to change the resolution and aspect ratio, but not all devices are an exact rectangle. Some have curved edges, notches, and other screen designs which may get in the way of UI or important game details.
Here’s an overview of the device simulator as written in Unity’s official blog post. The package features:
- An extended Game View, which allows you to turn Simulation Mode on and off and to select devices
- An extensible device database that stores the device and phone configurations and characteristics that will drive API shims’ return values
- API shims that return device-specific API’s results (screen resolution, device model, orientation, etc.) when used in Editor Play Mode
Each device also has a safe area defined (which you can modify) and this shows the bounds of where your UI will fit. This especially helps when developing mobile apps, as notches and beveled edges are becoming more commonplace.
- Mobile Game Development Mini-Degree by Zenva
- Unity Device Simulator! – by CheerFulDev
- Device Simulator in Unity – by CodePlanStudio
- How To Setup And Use The Device Simulator From The Package Manager? by Dilmer Valecillos