I am working on a mobile game which most likely won’t be released until Fall of this year. Loving the UI toolkit so far, but I did have a question about scaling.
I plan to use UI Toolkit for popups that require many elements. I have no problem scaling my UI to fit full screen. That scaler works great on many resolutions in landscape or vertical views. But the problem is that it only works in full screen. Ideally I want my canvas to scale to say 80% width and 40% height with a minimum of 400px (if 40% of height is less than 400px - then ignore percentage. If total screen height is less than 400px… well, just make it 100%).
Is there a way to do that with current settings? My guess is NO. Is there a way to do that programmatically? I could calculate the required width and height of my popup and then call function like “Canvas.ScaleTo(500,1000)”.
