- Home /
Anchor Stretch Problem
Im trying to create a main menu for my game and im working with the UI buttons. I used the stretch in both sides transform and set a number in top, bottom, right and left but the problem being that this sets a fixed amount of pixel from the top of the screen or from the bottom. When I then change the resolution, either the button is way too big or way too small. What would be ideal is to set the amount in top, left, bottom and right as a percentage of the total resolution. Any way to do that or I would need a script. If so, anyone got a good one I can use ?
Whenever i work with UI stuff I manually set the anchor points
also setting the canvas to scale with screen width and height also helps, and setting a base resolution of something like 1920 x 1080 will make sure it shows pretty much the same on any screen
Thanks man ! Im kinda new to UI and as dumb as it might seem, I didn't know you could manually set the anchors like that.
Your answer
Follow this Question
Related Questions
Keeping relative size of UI elements without moving them 0 Answers
Get buttons to scale at the same speed as canvas? 1 Answer
Wrong Scene loading from Pause 0 Answers
How to make image fill the screen? 0 Answers
Basic question about creating a menu 1 Answer