Raw Image 컨트롤은 사용자에게 상호작용하지 않는 이미지를 표시합니다. 장식, 아이콘 등에 사용할 수 있으며, 스크립트의 이미지를 변경하여 다른 컨트롤의 변경 사항을 반영하도록 만들 수 있습니다. 이 컨트롤은 이미지 컨트롤과 유사하지만, 이미지를 애니메이션화하고 컨트롤 사각형을 정확하게 채울 수 있도록 더 많은 옵션을 제공합니다. 하지만, 이 컨트롤을 사용하려면 텍스처가 스프라이트여야 하는 반면, 로우 이미지 컨트롤은 모든 텍스처를 사용할 수 있습니다.
프로퍼티: | 기능: |
---|---|
Texture | 표시할 이미지를 나타내는 텍스처입니다. |
Color | 이미지에 적용할 컬러입니다. |
Material | 이미지 렌더링에 사용되는 머티리얼입니다. |
Raycast Target | Raycast Target 을 활성화하면 Unity가 이미지를 레이캐스팅 대상으로 간주합니다. |
UV Rectangle | 컨트롤 사각형 안 이미지의 오프셋과 크기를 0.0 ~1.0 범위 정규화된 좌표로 나타낸 값입니다. 이미지 모서리를 늘려 UV 사각형 주변 공간을 채웁니다. |
로우 이미지는 스프라이트 텍스처를 필요로 하지 않기 때문에 Unity 플레이어에 가능한 모든 텍스처를 표시하는 데 활용할 수 있습니다. 예를 들어 WWW 클래스를 활용해 URL에서 다운로드 받은 이미지나 게임 오브젝트의 텍스처를 표시할 수도 있습니다.
UV Rectangle 프로퍼티를 활용하여 큰 이미지의 일부를 표시할 수도 있습니다. X 와 Y 좌표로 컨트롤 왼쪽 하단 모서리에 이미지의 어떤 부분을 정렬시킬지 지정할 수 있습니다. 예를 들어, X 좌표가 0.25인 경우 이미지의 왼쪽 1/4 부분이 잘리게 됩니다. W 와 H 프로퍼티는 각각 컨트롤 사각형에 맞도록 이미지의 너비 또는 높이가 얼마나 확대/축소될지 지정합니다. 예를 들어, 너비와 높이가 각각 0.5인 경우 이미지의 1/4이 컨트롤 사각형에 맞도록 축소됩니다. 프로퍼티 값을 변경하여 이미지를 원하는대로 줌(zoom) 또는 확대/축소할 수 있습니다. 스크롤바 컨트롤도 참조하십시오.
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.