-
[Tip] ScrollRect 자동 정렬 (Dynamic ordering)Unity/UI 2020. 5. 15. 05:19
이게 알고 나면 정말 간단한건데 까먹고 나면 난감하기 그지 없다.
검색하면 C# 코딩으로 해결하는 ...양형들 때문에 눈물이 주르륵...
- Horizontal/Vertical Layout Group
자식 노드들의 위치를 레이아웃 잡아서 정렬한다.
- Content Size Fitter
Content 영역의 크기를 조정한다.
보통 이거 두개면 스크롤뷰를 완벽하게 구현할 수 있다.
자세한 내용은 Unity UI 레퍼런스 문서를 참조하면 된다.
https://docs.unity3d.com/Packages/com.unity.ugui@1.0/manual/comp-UIAutoLayout.html
Auto Layout | Unity UI | 1.0.0
Auto Layout The auto layout system provides ways to place elements in nested layout groups such as horizontal groups, vertical groups, or grids. It also allows elements to automatically be sized according to the contained content.
docs.unity3d.com
'Unity > UI' 카테고리의 다른 글
[Tip] 화면 해상도 & 가로 세로 비율 조정 02 (0) 2020.05.17 [Tip] 화면 해상도 & 가로 세로 비율 조정 01 (0) 2020.05.17