How to change mobile device screen size in Unity for testing?
For an experiment I need to be able to dynamically adjust the screen size of my device. I'm using a Nexus 5 (5") and want to fake the screensize to 2", 3", 4",.. See images: Is this possible using Unity? I'm aware that I can easily place some planes right in front of my camera, but I'm looking for a proper solution.
You should set the camera background color to black and make your game play in the specified area and then programmatically change the settings of camera like size etc.
You can find more information on how to play with camera here: http://docs.unity3d.com/ScriptReference/Camera.html
In the editor’s Game view, you can set the size that you’ll see when you hit Play. Across the top of that view are buttons for screen resolution; the far left side has setting for screen size, and the right side has Maximize on Play.
- Database Administration Tutorials
- Programming Tutorials & IT News
- Linux & DevOps World
- Entertainment & General News
- Games & eSport