Game screen to fit any android device

Hello guys ,
I am facing a problem , I am clueless about how to set the game to fit all kind of android devices screen resolutions.
I did some research but I did not get a solution . Could anyone please help ?
Leave a link (most recent , with a full and clear answer are more appreciated ) if you know any , explain , post a code (that I could read and understand) , a step by step or even just clues on how I could start by getting a solution.
Thanks for reading guys and I am really grateful to all of you !

You will have to play around with this matter little bit before you get things perfectly,… although it many never be perfect :slight_smile:

Take a look at the screenshot below. When you create a canvas it comes with a component attached called “Canvas Scaler”. This is responsible for what you want to do.

The key is to have a perfect UI setup to begin with though, you shouldn’t solely rely on this. Make sure you have things anchored properly etc.

Here is the Unity Reference, read up on this, read up good! It will save you a lot of headaches later

Have you read the page in the manual on the subject?