How to fit your Unity Game on Different Mobile Screen Sizes

preview_player
Показать описание
Hey guys! In this tutorial, I will show you how you can easily fix your game view into different smartphone screen sizes.

Download the script here ---

If you want to learn more about the code then check out the owner of these scripts --

ViewportHandler -

CameraAnchor -

My accessories -

Check out more useful videos --
How to monetize our game with AdMob ads -

Top-Down Car Movement with a joystick in unity -

Enemy follow player 2d pathfinding in unity

Music Credit -
Song - Invincible
Artist - Deaf Kev
Writers - Holly Knight, Simon Climie

#unity #gamedevelopment #indiegamedev
Рекомендации по теме
Комментарии
Автор

Hi! Its not working for me. In the camera preview it's just showing nothing, I am having a 2D landscape scene. So when I scale the camera, its showing nothing in the small window of Camera Preview. Also when I run, objects are clipped from corner even after using the script. What went wrong?

jesalonboard
Автор

That's a God-level scripting, it solved it all perfectly the first time!

lyozov
Автор

I face a problem when I build setting On Android the terrain has been removed in the mobile view only shows a white surface and shows the player and UI Button

usamaakram-sbex
Автор

Thanks for tutorial, but, bruh, turn off this music in background, that's not a 2010

hixac
Автор

Why My camera anchor script doesn't working?

AYANKHAN-ehve
Автор

Do this in a game where you need a fixed distance between the 2 cubes and it's not going to work, I think most games have such mechanics in it.

Auzuru
Автор

çok teşekkür ederim yalın ve güzel anlatım.

ekremdal
Автор

You can't put a script on every object in big scenes

random_precision_software
Автор

but the adding of script viewport is tedious, becuase I Have so many gameobjects on screen is there any method?

mrroop
Автор

It's not working :( Does it not work with canvas?

dalila
Автор

hey man, i am making a more complicated game, with more objects and it doesnt work on every device, why

wescube-ligma
Автор

My game is so screwed up when played on ipads

DARK_AMBIGUOUS
Автор

i makeing my first game so i don't much get it but I get it

Today_tranding_topic
Автор

Does this not work for portrait!? Or is it just me help
Nevermind it does work

ghauswood