Unity/UI

좌우로 넘기는 정적 스크롤뷰 만들기

s0002 2023. 2. 13. 14:50

정적 스크롤뷰 만들기

1. Image scrollview

스크롤할 영역만큼 크기 조절


2. scrollview 안에 Create Empty  contents

앵커 왼쪽 위, 사이즈 조절

Add Component Content Size Fitter-Horizontal Fit-Preferred Size

Add Component Horizontal Layout Group-Spacing 조절

 

3. contents안에 Image item

앵커 왼쪽 위, 사이즈 적절히 조절

컨트롤+D 필요한 갯수만큼


4. scrollview에 Add Component Scroll Rect

ScrollRect-Content에 contents 넣고 Horizontal만 체크

Add Component Mask-Show Mask Graphic  체크 해제

'Unity > UI' 카테고리의 다른 글

상점 동적 스크롤뷰/데이터 연동/Tab 메뉴 구현  (0) 2023.02.19
좌우로 넘기는 동적 스크롤뷰 만들기  (0) 2023.02.13
슬라이더 만들기  (0) 2023.02.11
체크박스 만들기  (0) 2023.02.07
02/06 과제  (0) 2023.02.07