프로퍼티: | 기능: |
---|---|
Min Width | 이 레이아웃 요소의 최소 너비입니다. |
Min Height | 이 레이아웃 요소의 최소 높이입니다. |
Preferred Width | 추가 가용 너비가 할당되기 전에 이 레이아웃 요소의 선호 너비입니다. |
Preferred Height | 추가 가용 높이가 할당되기 전에 이 레이아웃 요소의 선호 높이입니다. |
Flexible Width | 레이아웃 요소가 형제 레이아웃에 상대적으로 채워야 하는 (추가 사용 가능한)너비의 상대적 크기입니다. |
Flexible Height | 레이아웃 요소가 형제 레이아웃에 상대적으로 채워야 하는 (추가 사용 가능한)높이의 상대적 크기입니다. |
레이아웃 요소의 최소, 선호 또는 가변 크기를 오버라이드하려면 Layout Element 컴포넌트를 게임 오브젝트에 추가하여 구성할 수 있습니다.
레이아웃 컨트롤러가 너비 또는 높이를 레이아웃 요소에 할당할 때, 다음 방식으로 프로퍼티가 사용됩니다.
Layout Element 컴포넌트는 하나 이상의 레이아웃 프로퍼티의 값을 오버라이드합니다. 오버라이드할 프로퍼티의 체크박스를 활성화하여 오버라이드 값을 지정해야 합니다.
최소 및 선호 크기는 일반 유닛으로 정의되어 있지만 유연한 크기는 상대적인 유닛으로 정의되어 있습니다. 레이아웃 요소가 0보다 큰 가변 크기를 가지고 있을 경우 모든 사용 가능한 공간이 채워집니다. 형제 레이아웃의 상대적 가변 크기 값은 각 형제 레이아웃의 사용 가능한 공간을 채우기 위한 비율이 얼마나 큰지를 보여줍니다. 가장 일반적으로 가변 폭 및 높이는 0 또는 1로 설정됩니다.
어떤 경우에는 선호 크기와 가변 크기 모두 지정할 수 있습니다. 가변 크기는 모든 선호 크기가 완전하게 할당되고 난 후에 할당됩니다. 그러므로 선호 크기 없이 가변 크기를 지정한 레이아웃 요소에서는 다른 레이아웃 요소가 완전한 선호 크기로 커질 때 까지 최소 크기를 유지합니다. 그 이후 추가 사용 가능한 공간에 기반하여 성장합니다. 가변 크기를 지정하는 것으로 이러한 현상을 피할 수 있으며 요소가 다른 선호 크기를 가진 레이아웃 요소와 함께 선호 크기로 커질 수 있습니다. 이후 모든 유연한 크기가 할당되고 난 다음 더 커지게 됩니다.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.