I have a sprite I would like to fit in a section of the screen. Let's say the middle 3/5 at the bottom. I built the following to do so:
- Container - UIWidget with a Unified anchor of (custom 0.2, custom 0.8, bottom 0, top 0)
-- Sprite - UIStretch with FitInternalKeepingRatio and then appropriate InitialSize values for my sprite
In the editor, this will properly scale up the image, maintaining aspect ratio, to fit in the bottom of the screen. But in-game, it is pushed off screen I believe.
Potential bug somewhere in how UIStretch and Anchors interact?
----
Alternatively, how to implement FitInternalKeepingRatio using the new 3.0.7 anchors? This post seems to be asking the same question:
http://www.tasharen.com/forum/index.php?topic=7092.msg33441#msg33441If there's a better way to do this, I'm all ears.