Unity study notes: Basic usage of ScrollView

Reference link: Unity study notes: Basic usage of ScrollView (nanny-level tutorial, the kind that even a radar-obsessed person like myself can learn~)_scrollview unity_Thyme Phenollan's Blog-CSDN Blog

Tips on using UGUI (1) Use of Content Size Fitter_Unique_849997563's blog-CSDN blog 

 Tips on using UGUI (5) Use of Scroll Rect component_scrollrect_Unique_849997563's blog-CSDN blog

Scroll Rect - Unity Manual 

Learn to design game UI interface once! | Plants vs. Zombies Series Tutorial 19 | Using Canvas, ScrollView, and UI Framework | Catch them all_bilibili_bilibili

 

 After adding, scroll view represents the size of the UI canvas, viewport represents the viewport (can be smaller than the scroll view size), and Content is used to mount objects. Generally, components are added to control mounted sub-objects.

 

content size fitter, automatically changes the size of sub-objects to prevent the total size from exceeding the Content size and causing rebound, set to Preferred size

 contentW and H change automatically

The content and viewport corresponding to the scroll rect should not be moved. The scroll bar mounted on the scrollball can be deleted.

 

 

Guess you like

Origin blog.csdn.net/qq_44874004/article/details/131544733