We’ll create layout with ScrollView in Unity….
- First, we need to add new GameObject and rename it as “ScrollView”. Then, Add “Mask”(here is use “Rect Mask 2D”) and “ScrollRect”.
- 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”.
- 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.
- Test run. So, you might has the item as below picture.