UI에 Vertical Layout Gourp 이나 Horizontal Layout Gourp 등 에 내용을 넣을 시 아래와 같이 내용이 어긋날 때가 있습니다.
그럴때는 내용을 다 넣은 뒤
ForceRebuildLayoutImmediate(RectTransform layoutRoot);
해주시면 됩니다.
볼트에서 사용 시 유닛 옵션에 LayoutBuilder 를 추가해주시면 됩니다.
Unity - Scripting API: UI.LayoutRebuilder.ForceRebuildLayoutImmediate
Normal use of the layout system should not use this method. Instead MarkLayoutForRebuild should be used instead, which triggers a delayed layout rebuild during the next layout pass. The delayed rebuild automatically handles objects in the entire layout hie
docs.unity3d.com
'유니티 팁' 카테고리의 다른 글
PlayGamesClientConfiguration not found 해결법 (0) | 2022.04.12 |
---|---|
유니티 안드로이드 빌드 에러 해결법 (0) | 2020.11.22 |