I want to build my game for the PC, except that there’s a problem. In my test build I got, with no way to play it at the resolution I had my UI elements set based on (1024 x 768), some of those elements are now out of place in playing the game at a different resolution.
Let me explain the bugs in each visual I have (this is at 1280 x 600):
The buttons “One Player”, “Two Player”, and “Copyrights” and the Source Code text is not all above the link to my personal website.
The Back and Start buttons are in the wrong place, and even the group that has the “Goals to Win” text and its corresponding dropdown. You can’t even see four elements I put there: the “Difficulty” text, its corresponding dropdown, the “Color” text, and its corresponding dropdown.
Similar to the one above, except the “Player 1 Color” and “Player 2 Color” texts this time, and with two dropdowns to select the color of the paddles.
The copyright text and the button should fit between the bottom of the logo and the bottom of the red panel with some ample space. But here, it overfills.
There’s no space below the Music Volume and Sound Volume sliders and value labels as they are supposed to.
In all cases, I used hard pixel positioning to place these elements. I don’t know how to position them based on viewports because then with ratios, the scale of these elements will be adjusted automatically based on the window resolution. What tutorials should I go to, what resources do I need, or what is it that I need to do?
Please let me know. It may be too much for me to take Print Screens of all the components on the Editor to show their Rect Transform values.