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
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.