프로퍼티: | 기능: |
---|---|
Aspect Mode | 사각형의 크기를 조정하여 종횡비를 적용하는 방법입니다. |
None | 사각형을 종횡비에 맞추지 않습니다. |
Width Controls Height | 높이가 너비에 따라 자동으로 조정됩니다. |
Height Controls Width | 너비가 높이에 따라 자동으로 조정됩니다. |
Fit In Parent | 종횡비를 유지하면서 사각형이 부모 사각형 안에 들어가도록 너비, 높이, 포지션 및 앵커를 자동으로 조정합니다. 부모 사각형 안에 이 사각형이 덮지 않는 공간이 있을 수 있습니다. |
Envelope Parent | 종횡비를 유지하면서 사각형이 부모의 전체 영역를 덮도록 너비, 높이, 포지션 및 앵커를 자동으로 조정합니다. 이 사각형은 부모 사각형 밖으로 나올 수 있습니다. |
Aspect Ratio | 적용할 종횡비입니다. 너비를 높이로 나눈 값입니다. |
종횡비 피터는 자체 레이아웃 요소의 크기를 조절하는 레이아웃 컨트롤러 역할을 합니다. 종횡비 피터를 통해 너비에 맞게 높이를 조정하거나, 반대로 높이에 맞게 너비를 조정할 수도 있으며, 또는 부모 안에 맞추어 들어가게 할 수도 있고 부모를 완전히 감싸도록 할 수도 있습니다. 종횡비 피터는 최소 크기 및 선호 크기와 같은 레이아웃 정보를 고려하지 않습니다.
사각 트랜스폼 크기가 변경될 때(종횡비 피터 등) 크기 조정이 피벗을 중심으로 이루어집니다. 즉, 피벗을 사용하여 사각형의 얼라인먼트를 제어할 수 있습니다. 예를 들어 상단 중심에 배치된 피벗은 사각형을 양면으로 균등하게 늘리고, 위쪽 가장자리가 해당 포지션에 유지되는 동안 아래쪽으로만 연장되게 합니다.
AspectRatioFitter
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.