UI 빌더에는 전용 “이미지” 요소가 없습니다. UI 빌더에서 이미지를 생성하려면 일반 VisualElement
를 만들고 Background > Image를 원하는 이미지로 설정하십시오. 아래 이미지는 인스펙터의 배경 스타일 프로퍼티 미리보기를 나타냅니다.
참고 |
---|
Slice 배경 스타일 프로퍼티는 사용하지 마십시오. Slice를 사용하여 이미지에서 9슬라이싱을 설정할 수 있으나, 이는 이미지가 아닌 요소에 해당합니다. 2D 스프라이트 에디터 및 2D 스프라이트 에셋의 기존 9슬라이싱 지원을 사용하십시오. 아래의 (2)를 참조하십시오. |
기본적으로 모든 일반 텍스처 이미지가 UI 빌더에서 작동합니다. 일부 선택 패키지를 설치하면 더 많은 에셋 타입을 지원할 수 있습니다.
com.unity.vectorgraphics
패키지를 설치하면 VectorImage
를 요소의 배경 스타일로 할당할 수 있는 기능이 UI 빌더에 표시됩니다.com.unity.2d.sprite
패키지를 설치하면 2D 스프라이트 에셋(또는 서브 에셋)을 요소의 배경 스타일로 할당할 수 있는 기능이 UI 빌더에 표시됩니다. 또한 2D Sprite 패키지를 설치하면 인스펙터에서 2D 스프라이트 에디터를 바로 열 수 있습니다.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.