What controls the dialog and toast sizes?

0 votes
asked Dec 24, 2016 in Help by anonymous
Hello! Been using MaterialUI for Unity and it's been a good start.

One thing I don't fully understand is how SimpleListDialog and Toast size is determined. I'm using Scale with Screen Size. My target resolution is 1080x1920, but when I actually set the Reference Resolution to that, the font in the list dialog comes out really tiny. When I set to it something that seems silly like 340 x 1920, I get the size I want.

Thanks for any pointers!

1 Answer

0 votes
answered Jan 3, 2017 by admin (31,720 points)
Hi there,

You're on the right track with using the scaling to change their size (eventually I want all the components to be able to be easily resized independently, but for now, they're mostly at a fixed size, but can be globally scaled up/down using the Scaler).

I'd recommend scaling with screen size, and using a reference resolution of 360x640 for portrait, or 640x360 for landscape (it doesn't *really* matter which one you pick, as the scaler swaps the x and y values upon screen rotation). This will give you a good 'normal' size for any phones and small tablets. For larger screens, you may want to use something larger like 540x960.

Let me know if that helps!

~ Declan.
Welcome to MaterialUI support! Ask us anything :)
...