Mobile game resolution unity Dec 24, 2022 · When we build our game in Unity, the first thing you want to make sure is that the Game is on proper Resolution. Jun 12, 2019 · Hey everyone, I’m really confused what resolution to use for some environmental sprites I’m using for a 2D endless runner game for mobile. It’s the player that has a screen size with either a fixed or (in the case of mobile) rotating aspect ratio. Read this blog post to get a better idea of what’s the best course of action for your project. I have a Trading Card Game built with Unity and using WebGL for web3 rendering. Oct 12, 2024 · Query the Unity safeArea API to get the safe area of the screen in pixels and adjust your game UI and UX accordingly, especially for the elements that users can interact with. I’m curious - are you continuing to design your art and user interfaces based on Jan 20, 2025 · For game developers, selecting the right resolution ensures that the game appears as intended across various monitor sizes. Dec 19, 2022 · In line with creating your mobile game in Unity, you might want to consider the Mobile Game Development Mini-Degree. The current canvas is set to 1920 x 1080. But games like Kingdom Rush, tower defense, and other games like Alex you want to see the same thing regardless of the device. I have experimented May 15, 2020 · Create empty game object as the child of the canvas; Add RectTransform component and Canvas Renderer component to the empty game object; Set the anchor preset of the RectTransform to “stretch to all side” , it’s probably at the right bottom corner of the menu; Move all your game object except for camera as a child of the empty game object Nov 20, 2016 · Hello Reader, I have just started to build my own little game for Android and Apple mobile phones. Any advice or solution for me to keep the display always like 9:16 or make it fit on any screen size? Mar 22, 2019 · Hi developers, First of all, forgive me cause I’ve asked very old question. As I saw, I have follow 3 steps: Scaling the canvas to Fit Screen Size (There are many instruction by video In this video we go through making our UI responsive to different screen resolution. – Jul 6, 2021 · I’m currently working on a 2D pixel art game using the Pixel Perfect Camera + Cinemachine. I have attempted but I still don’t know how to adjust the screen (or camera, Canvas) orientation to portrait so that it would be suitable for these platforms. The ‘knobs’ are the following: The SetResolution method Target DPI (Project Settings → Player → [Choose Android Platform] → Resolution Scaling Mode → Fixed DPI) Render Scale (Project Settings → Aug 3, 2023 · Hello Everyone, Many existing tutorials, e-books, and forum discussions often recommend using a reference resolution of 1920x1080 for designing & implementing mobile games in Unity. The way of defining anchors, and just the general workflow with Unity's UI feels very cumbersome to me. Feb 26, 2025 · How can I force black borders on mobile builds when the aspect ratio is smaller than the native one? I want to set the resolution directly to the screen without stretching, instead of modifying the Viewport Rect. Feb 18, 2019 · Starting a new mobile project and would like to ask for recommendation what the best starting point is in regards to resolutions. And this obviously doesn't scale well to the other resolutions. I’m newbie in Unity 2D game, before ask this question, I read a lot of thread in Unity Answer + Watching instruction video in Youtube. My goal is a standard game using post-processing effects and realtime lighting (you can bake your game too) Jan 25, 2016 · Hi guys. resolutions nearly always returns nothing on mobile devices even if Screen. The other strange thing that we’ve found is that Screen. Hi, I just worked on this problem in my game. Use Screen. – Ophélia Commented Feb 7, 2017 at 19:17 Mar 17, 2021 · Ok, so I’m trying to boost performance and battery life of my mobile game. Currently the game is displayed within Unity in a horizontal 16:9 view, and thus I don’t know how to arrange the elements within the scene yet. This guide should work to fix letterboxing, or if you just want to manually set the resolution of the game for some other reason. The camera works well when I use 9:16 aspect (Image 1). I would go insane if I needed to support every resolution. Large textures also make the build size much larger which may be an issue when considering the mobile market - mobile devices have less storage and, in the case of smart phones, the users are likely to want to download the application on a mobile broadband connection - 3g/4g etc - where build size often makes a difference in a person's decision Dec 22, 2020 · Learn how to work with multiple Mobile Resolutions inside of Unity in less than 10min! In this short video I will cover a simple and easy way to use in all o Jul 25, 2013 · I have a game what I made in 480x320 resolution (I have set it in the build settings) in Unity. When developing with Unity, it’s vital to choose a reference resolution that matches your target platforms. 5. That’s the thing that puzzles me. com/course/unity2dmaster/?couponCod Feb 24, 2020 · I'm developing my first game for mobile devices in Unity3D. Unity downscales the game screen to match this setting if the device’s native screen DPI is higher than this value. Use this when you want to render at a smaller resolution for performance reasons or to upscale rendering to improve quality. Using low resolution assets is not an acceptable solution. How can I make the game such that it scales according to screen size, keeping the same proportions and having all GameObjects fit within the game view? I tried using the solution at this 1 but I found it kind of vague, in that it doesn’t mention where to attach some of the Aug 17, 2021 · I’m developing a simple game and reached the building stage. This is needed most when devel Working on a mobile game, playing around with multiple device resolution compatibility, and wondering what the best resolution to design for would be. Oct 9, 2017 · How can I code my game to work on every resolution of Android devices? (with Unity) If you anticipate your game running on a specific device, use the resolution for that device. Change it to anything that Mobile Phones have in Common (Usually 1080 x 1920). Get my courses with discount: 👉 Unity 2D Master: https://www. If the reference resolution is 1920 x 1080 then sizing an image’s rect transform to 512 x 512 means 512 pixels in the context of a 1920 x 1080 screen, then scale accordingly based on screen match mode and the actual resolution of the current device. Sep 16, 2019 · If you are using a single mobile device, then get the resolution of it and add it to Unity by clicking on "Game" View -> Click on "Free Aspect" -> Click on "+" and add the width and height of the mobile screen. Download the script here ---https:// This article has been written using Unity 5. In this post we are going to take a look at two scripts that will enable you to create games that support multiple screen sizes. They’re merely viewports into your game’s world. Most people prefer to always make Mobile games of the Resolution 1080 x 1920. I am using an option that allows either a 16:9 aspect ratio or the device’s native ratio, and I wouldn’t like to add borders manually through the Viewport Rect because the main Jan 31, 2025 · In this thread I am going to share with you the results of testing and reviewing the performance of Unity mobile games in 2025. If you want to go with strictly fixed and somewhat weird resolution (with black bars if needed) you may need to create something custom, like render everything to render texture of fixed resolution, and rendering it as quad with fixed aspect ratio with your Aug 4, 2023 · Hello Everyone, Many existing tutorials, e-books, and forum discussions often recommend using a reference resolution of 1920x1080 for designing & implementing mobile games in Unity. In this video I explain how to use the Fit-Workground-To-Camera script to easily scale your game for all resolutions in Unity. udemy. But I would like to publish my game for every Android device with every resolution. Use the Target DPI property to set the target DPI of the game screen. Nov 8, 2020 · From creating your assets in multiple resolutions to scaling the camera and so on. If you have orthographic camera look at adjusting the size parameter on the camera based on screen resolution changes. And there are different ways how to handle this issue. I was reading about my phone and it said most apps don’t support a screen size like mine yet, and heck, i don’t even see that resolution size in Unity for the game view size selector. Also currently my character’s body part images for a skeletal animation have a Mar 29, 2018 · Reference Resolution: (1024x768) - The basis on which our other numbers for sizing UI are framed. But from my research I see that there are four different ‘knobs’ that improve performance and battery life. I understand screen resolution does affect graphic performance even in The Built-in Render Pipeline is Unity’s default render pipeline. 3 is the latest version last time we checked. The system will experience a permanent performance hit when loading that huge sprite into memory. Download and installation of this PC software is free and 1. Currently the UI uses the same one. I’m looking for a simpler way to adjust the UI and Game to any mobile resolution without retyping and adjusting code for each mobile screen resolution. However, when I change it to another screen size (1920x1080), it displays everything outside the game scene (Image 2). When it’s time to publish a standalone game made in Unity 3D, one of the things to do is ensuring that the game and its UI work fine on different display resolutions. UI rendering is left at the native resolution for the device. Compatibility and License. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. When creating a mobile game, the biggest challenge is to make your game look the same on all screen sizes. However, given the advancement in smartphone technology, today’s devices boast higher resolutions and offer wider aspect ratios. This will be base3d on the UI and should support several mobile phones. Oct 10, 2017 · Hi,I have a game that is created by a person but the base is Unity, what happens is that I change monitor to a bigger one and the game does not have the option of resolution then the game is small, could someone help me?… Apr 8, 2020 · I want my game to be played on phones in the vertical view. And you can use the Scale With Screen Size option in the Canvas Scaler component to have Unity adjust the size when on different devices. My game still does not properly scale to all the other resolutions. Custom Resolution Utility is provided under a freeware license on Windows from video tweaks with no restrictions on usage. I guess Unity general idea is to be adaptive to any screen resolution on player device. The challenge lies in maintaining visual fidelity and performance. SetResolution is capable of resizing the app. Hey guys! In this tutorial, I will show you how you can easily fix your game view into different smartphone screen sizes. Use Unity to build high-quality 3D and 2D games and experiences. What reference resolution will work best across different mobile devices, including bezel-less phones like the iPhone X? I have it set to 1920x1080 currently, and all the fonts seem blurry. It will still look amazing even on high resolution devices. Should I support two resolutions (1080x1920 and 540x960) or choose a lower one like 140K subscribers in the Unity2D community. . Is this resolution too big for a mobile game? I didn’t make the in-game-sprites yet and I’m just wondering that the resolution might be too large (memory comsumption). On top of the Game View Tab, you can see the written Free Aspect. Is it better to start with like iPhoneX resolution and scale down or? Nov 19, 2018 · At game events and online, people often ask me this question: “I’m making a 2D game in Unity for both PC and mobile: what resolution should my assets be?” There is no simple answer to this question that covers all cases. The UI System in Unity includes a variety of tools for this purpose that can be combined in various ways. Deploy them across mobile, desktop, VR/AR, consoles or the Web and connect with people globally. Dec 24, 2022 · Most people prefer to always make Mobile games of the Resolution 1080 x 1920. May 24, 2019 · Sorry for my english. However I cannot build my own game fit to few Mobile Phone Screen Size. Also, I want to have the game play on full-screen even on taller ratios as some phones have, so how can you adjust the compatibility so the player character stays the same but enemies that Nov 5, 2019 · I’m creating the UI for a game in Unity. Jan 2, 2017 · (because unity runs the game in the screen display resolution and it's very power consumption if the device has a 2k or more display). Using scaling canvas, so need to determine a kind of "middle ground" resolution to use during design phase that may work for both phones and tablets once built. I feel that the Canvas Scalers "Reference Resolution" is very important. However having trouble seeing some of the numbers/values of my cards using 4k and 8k monitors. If found out a very simple solution that is very effective in more than 95% of cases and it only requires two Modern games and applications often need to support a wide variety of different screen resolutions and particularly UI layouts need to be able to adapt to that. My game uses a 720p-resolution. FixedDPI: When you select this value, the Target DPI property appears. Some games (especially 3D) it isn't an issue, you just show more or less. Can someone give me a start as to how I should approach this? There are lots of different sources but no clear answer, please help. but, i want my game to be low res with the pixelated thing (will a low rendering texture thing), and i am assuming that would make the game ‘lighter’ would I still need to decrease the polygons on mobile? Dec 29, 2021 · Remember to substitute /height/ and /width/ with your display's resolution dimensions. It is a general-purpose render pipeline that has limited options for customization. How to set a good resolution? Jul 18, 2022 · Hello, So i am a little new, I have been developing a simple mobile unity game, but about 80 percent through, i realized, shoot, need to take in account each mobile device will have different screen resolution/aspect ratio etc… I did see that unity does provide a Simulator, which i have been working using Samsung Galaxy S10e, however when i change it to the Google Pixel 5 or others, the While Canvas Scaler, and Anchors exist. Building The Player Mar 14, 2021 · Render Scale This slider scales the render target resolution (not the resolution of your current device). What Joe said is the best way to work. Oct 1, 2022 · Learn how to create a resolution dropdown in Unity. It works fine on 576x1024, 720x1280, 1440x2560 etc because the aspect ratio is the same as the original image (or canvas, which is 1080x1920) being a 9:16 aspect ratio. For example for iOS and Android you can choose 16:9 or 4:3 (and 1:1 for BlackBerry) when testing in the editor. To ensure everything is pixel perfect I detect the native screen width/height in pixels to determine what the reference resolution should be. 3 as a reference, many things could have been changed in the current version. Video example goes through mobile app but can similarly be implemented f Nov 20, 2018 · The black bars/cutting off of your image is caused by the fact that the image is trying to preserve its aspect ratio due to using aspect ratio fitter. May 10, 2025 · And unity’s default resolution system, based on DPI (which is low because the screen is huge), runs an app in native resolution. Apr 2, 2019 · Hello, I’m creating my first 2D-game for Android with Unity3D and I have a target resolution of 1080x1920 (my GUI uses this resolution). Nov 13, 2014 · I want to build my game to support you know, umm 1080P not 2560x1440, whatever that is in P. jpg 1920×611 317 KB Huminaboz June 20, 2024, 6:34pm Feb 24, 2015 · So to answer my own question, I finally realized that you don’t really need to work with screen resolutions for mobile. 2. You can set a reference resolution on the canvas in which your sprites reside, and set "UI scale mode" to "Constant pixel size" instead of "Scale with screen size" this way your sprites will always be in the resolution you want them to be, instead of getting stretched Unity is the ultimate entertainment development platform. I heard that professional game-developers create their games in a way where the UI uses a much higher resolution than the game itself in order to deliver high-definition graphics for the UI-system. Hi guys, I’m a PC game developer before I started a new mobile title with the company and for client. Sep 11, 2020 · Hard to understand about Unity UI?If you understand the anchor of Unity UI, you can quickly and easily work on various screen sizes. I done some reading about graphic optimization for mobile device but there 1 particular thing that rarely mention in most of the mobile graphic optimization, which about the screen render resolution. I want to be able to play the game on both iPad and iPhone. Is there a way to you know, force a top resolution of 1080P 16:9 Feb 8, 2021 · The game part is off because I also have to manually change the camera orthographic size and game sprites etc for each resolution to fit properly. Many By default I would design for 16:9, but the bigger question is are you going to release on mobile? If it's a card game on mobile, you might wanna design for a vertical phone layout (9:16, I guess) because lots of good card-based games have nice vertical layouts, like Clash Royale and Card Crawl. If things do not show up in the right locations, the game won't work properly 3 days ago · i saw some people saying that when converting a pc game to mobile, the game will need less polygons (?) to work properly. Set your Game view to a resolution/aspect ratio of your choosing. These are only pooled every once in a while. 1 My Canvas PC Feb 1, 2014 · If you’re making a mobile game, do not bring in a huge sprite that you end up downsizing. But I'm currently using my phone's resolution as the reference (720 X 1560). I’m curious - are you continuing to design your art and user interfaces based on Jan 1, 2019 · Instead of locking out users from playing your game I think a better approach would be to look at some other options first. How can I do it, to tell Unity to scale my game up to the device's resolution? Is it possible to do? Thanks in advance! Feb 24, 2021 · Cameras in Unity don’t have a concept of vertical or horizontal orientation. May 7, 2025 · The first detailed resolution is considered the preferred or native resolution. Then Secondly, set your Canvas Scalar Correctly. My target is the low-end Samsung A14 mobile with Mali-G52 MC2 gpu at a price of $100 manufactured in 2023. SetResolution(width, height, false) to lower the output resolution and regain some performance. Apr 6, 2021 · Here is my game resolution and and reference resolution works almost well on every device in simulator 9826572--1412733--upload_2024-5-10_16-41-15. I've been fighting Unity's UI for years now, and I've come to the same conclusion. This only scales the game rendering. Unity Reference Resolution Settings. This comprehensive resource enhances your skills in Unity development for mobile, covering everything from basic introductions to advanced monetization strategies. Currently I’m using 400 ppi for most environmental sprites such as rocks, trees sizes 512x512 and 1024x1024 (etc…). I will solve your UI conc Nov 11, 2022 · I am currently trying to make a basic game for mobile. For my current project, I'm basically limiting it to 16:9 and 16:9 only. Scaling doesn’t apply and the application renders to its native screen resolution. Now any UI elements you set here will be reflected as the same on your mobile screen. I am new to Unity and am currently working on a simple 2d platformer app with touch-buttons on a canvas. Aug 3, 2021 · Avoid mobile native resolution With phones and tablets becoming increasingly advanced, newer devices tend to sport very high resolutions. The game works and looks good in Unity, but when I use Android Debug and I play the game on Android Device, the resolution seems to be so bad, the quality is too low, all the texts are pixelated. Boot the game up; custom resolutions set should be immediately recognisable. When I test the game through the unity remote on my Samsung J2 (which has a resolution of 960 x 540) the picture looks perfect: However when I go to the build the game and I test it as an app everything in the scene is stretched and the buttons look way too big. Foldable postures Foldable devices can be in various folded states, such as FLAT (fully open) or HALF_OPENED (somewhere between fully open and completely closed). For mobile, keep each sprite smaller than 1024x1024. Sep 13, 2019 · Hello! I made a game but I didn’t select any resolution ( it is default, I see there ‘FREE ASPECT’ ) . So far so good.