- Home /
2d game for different screen resolutions
I want to develop a 2d game for mobiles. The concept will be like, the bubbles will be created at a random position and moves till top of the screen. Below are my questions. 1. How to get a point(Vector3) with in the screen space. 2. How to make my game support multiple resolutions. 3. In recent versions of unity, there are anchors feature. But should i need to use a plane for all 2d unity games? I have been googling since a week but i could not find any answers. Request your help.
Hi, in this Unity tutorial you find how to create an UI for multiple resolition: https://docs.unity3d.com/$$anonymous$$anual/HOWTO-UI$$anonymous$$ultiResolution.html
If you need to transform a World Vector to Screen Vector you could use: WorldToScreenPoint https://docs.unity3d.com/ScriptReference/Camera.WorldToScreenPoint.html
Answer by Natrad · Jan 14, 2021 at 04:53 AM
Hi, You can find the solution at this tutorial "[SOLVED] Full tutorial: Build 2D game fit to any device screen size, resolution in Unity 2018" From youtube: https://youtu.be/2uYkom__5zo (By Vivu Standard).
Brgs,
Your answer
Follow this Question
Related Questions
Unity 2D How to Scale or Re-position sprite relative to different Screen sizes 1 Answer
2D snake game stop sprite from leaving screen 1 Answer
how can i divide screen to x & y axes for different resolutions 1 Answer
Adjusting the Camera's Viewport Rect automatically upon aspect ratio change 1 Answer
How do I negate the zoom caused by changing resolution and screen orientation? 1 Answer