I have read the wiki for UIAspectRatioConstraint and its just not clicking with me. Can anyone explain to me what a UIAspectRatioConstraint is, and how to use it?
UIAspectRatioConstraint is used to constrain a ui element to a certain size/shape.
For example, if you were to have a square on a 1920 by 1080 screen, it would look normal with scale.
If you were to change it however to a more stretched and longer screen, the square will appear more stretched alongside with it.
To counteract this problem, UIAspectRatioConstraint makes it to where it keeps it shape and size like normal. Essentially, keeping squares, a normal square ![]()
Hopefully that makes it more easier to understand.
Thanks for the explanation I understand much better now ![]()
Your welcome! Hopefully that helped, also, if a comment solved your problem, mark it as a solution ![]()
Cough
My bad im new to the dev forum so im still learning what all the buttons do XD
Thats ok
, also, welcome to the dev forums!