Hello,
I am programming a game that has many UI elements in it. Therefore I made a sort with empty Game Objects, these have the UI elements as child objects.
On the computer you can see all the UI elements, but on the Android phone the UI elements that are on the edge of the canvas are not visible at all or only partially visible.
Thanks a lot for your help.
Please post screenshots from both on PC and Android, so we can see what’s happening.
Here are the two screenshots.
It’s most probably happening because of the settings in the “Canvas Scaler” component of the Canvas, see below:
To get a better idea, change the aspect ratio of the game in the editor and you will see, then change to Canvas Scaler settings to find which one works for you.
Hello Sailendu,
thank you very much for the answer. I followed your instructions and it looks fine on my smartphone now, but now there are problems with the view on other devices.
Does unity not provide a way to automatically set the canvas to the correct size for all devices?
Please post a screenshot of how the problem looks on other devices, then I can understand.
Try setting the “Screen Match Mode” to “Expand”, it should work better.
Thanks Sailendu, that was the solution.