Hi,
i am currently trying to figure out what the different modes of UIStretch are doing. Until now, i only used "BasedOnHeight" but even there the x and y values don't seem to make sense to me.
For example i got a big background image in 5:4 that I want to scale up according to the screen height and I want to keep the aspect ratio. So I set the mode to "BasedOnHeight" and enter the aspect ratio of the image into x, y: that is X = 1.25, Y = 1. Works. Now I try to do the same for a button. I add a panel, center this and add a button to the panel. Now I attach the UIStretch to the button. The button is 175x78, so I enter X=2.24, Y=1. Now the button is displayed HUGE, it is drawn even bigger than the background image. So I gather that the thing seems to work different when you are below a panel. I enter X=0.0024, Y=0.001. Now the button is much smaller, but stretched horizontally. I change it to X=0.001, Y=0.001, now the button is displayed like i want it. I don't get why it is behaving that way.
Is there some documentation about how these modes work and what the X and Y values are doing for each mode and if there are other rules when working below a panel?