- Home /
Phone Rescaling GUI
Hello, I have researched for days on this and havn't found a sufficient answer. I'm basically looking for a script to attach to my GUI Texture to rescale it pending on what the screen size is. Would anyone be able to help me? Thanks so much :D
Comment
Answer by zeh · Feb 19, 2013 at 11:26 PM
Use Screen.width
and Screen.height
. More information in this similar question. You may also want to use `Screen.dpi` (especially on mobile devices) to resize your GUI according to a certain physical size.
Your answer
Follow this Question
Related Questions
Android/IOS GUI Rescale 0 Answers
Store/Stack Items 0 Answers
Button as a child of a button 0 Answers
InputField - Stop unity from dismissing touch screen keyboard on outside click? 0 Answers