I have one canvas and canvas have a child panel which is actually scroll view panel contains another child which has component grid layout. Canvas's UI scale mode is scale with screen size. But my Grid layout not fit to screen width, height is perfect.
Answer by mm-dacampo
Feb 03, 2016 at 03:39 PM
In case of dynamically updated content, use:
The second argument (worldPositionStays) will probably fix your issue...
Otherwise think about using LayoutElement (http://docs.unity3d.com/Manual/script-LayoutElement.html) for your items.
This worked for me, thank you.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
4 People are following this question.
Error : Missing GUILayout.EndScrollView/EndVertical/EndHorizontal? UnityEditor.DockArea:OnGUI()
Change Font Size of GUI Table
Help with GUI !!
How to have correct color on imGUI Buttons (as dynamic textures) avoiding multiply effect ?
unity gui.window in a class - monobehaviour error using new keyword