Auycro

Unity with ScrollView

18 Feb 2016

We’ll create layout with ScrollView in Unity….


  1. First, we need to add new GameObject and rename it as “ScrollView”. Then, Add “Mask”(here is use “Rect Mask 2D”) and “ScrollRect”.


  1. Create GameObject inside the ScrollView. Rename it as “GridContent”. We will use this as scrollview’s content container, So lets add “Content Size Fitter” and “Vertical Layout Group”.


  1. Then, lets puts the item which we want to show in “GridContent”. Add “Layout Element”. And, set width and height (Preferred Width, Preferred Height). And copy 2~3 more for testing.


  1. Test run. So, you might has the item as below picture.