- Home /
Question by
JustinEllis · Mar 11, 2016 at 02:49 PM ·
unity 5uiscalinglayout
GridLayout Scaling Issues
I'm having issues with the scaling of my UI elements that I have within a gridlayout GameObject that is also a child of a scroll rect gameobject. My main problem is that it dosent seem to scale with the screen size. All of my other ui scales perfectly without problems. I can't seem to find something that works for what I need. I basically need my GameObjects that are within my gridlayout gameobject to scale dynamically. Ive tried as many things as I know to my knowledge. Any help is greatly appreciated.
canvas.png
(47.4 kB)
gridobject.png
(113.0 kB)
Comment
Answer by Fydar · Mar 12, 2016 at 08:00 AM
You could use the Vertical Layout Group and the Horizontal Layout Group to form the grid and use content size filters to ensure that tiles in the grid are square.