Resize inputs

0 votes
asked Mar 4, 2016 in Help by anonymous

Is it possible to resize inputs (so larger and taller with larger texts and text hints ?)
I get strange results actually.

Thanks

commented Mar 4, 2016 by jonapkr (190 points)
Well i'm using Unity 5.2.0 FYI :)

1 Answer

0 votes
answered Mar 7, 2016 by admin (31,720 points)
selected Mar 8, 2016 by admin
 
Best answer
Hey :)

Hum... well resizing the width should be as trivial as modifying the width of the inputField.
Except if your inputField is under a layout. If that's the case, you'll find a "Manual Preferred Width" option on the InputField that you can play with ;)

Same thing for the height, you might want to untoggle "Fit Height to Content" and specify the "Manual Preferred Height" :)

If you want to change the size of the hint text, there's also a "Floating Hint" "Font Size" parameter that you can use on the InputField (in the inspector).

As with dealing with the size of the text itself, you can directly modify the InputText GameObject under the Input Field GameObject.

Does that answer everything? :)

~Yohan
commented Mar 7, 2016 by anonymous
Hello,

Thanks for the answer.
I've played with all the components in the meanwhile and i saw that you provide prefabs for root canvas too and i made tests with all the good components in the hierarchy and it seems to respond better (even when i adjust the text size for bigger characters). Maybe that things are related ? (for ex including the MaterialUIScaler)

I'm not finished yet, i'm still playing with components for trying but i think i'll get the result that i want ;)

Thanks again
commented Mar 10, 2016 by admin (31,720 points)
Hey there,

Sorry, were you asking a question?

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