UI 빌더에는 전용 "이미지" 요소가 없습니다. 이미지를 만들려면 다음 단계를 따르십시오.
배경 이미지를 설정할 때 지원되는 배경 이미지 타입을 선택해야 합니다.
참고: SVG 이미지를 시각적 요소의 배경으로 사용하려면 패키지를 설치해야 합니다. 해당 패키지는 Package Manager 창에서 git URL(com.unity.vectorgraphics
)을 통해 설치합니다.
프로젝트로 이미지를 임포트한 후 가장 직관적인 결과를 얻으려면 UI 빌더에서 시각적 요소의 배경으로 사용하기 전에 텍스처, 스프라이트, 벡터 이미지에 대한 특정 임포트 설정을 적용하는 것이 좋습니다.
시각적 요소의 배경으로 사용하는 텍스처 이미지에 권장되는 임포트 설정은 다음과 같습니다.
프로퍼티: | Value: | |
---|---|---|
** 텍스처 타입||Default** | ||
Non-Power of 2 | None | |
Compression | None | |
Alpha Is Transparency | true | |
** 텍스처 타입||Editor GUI and Legacy GUI** | ||
Non-Power of 2 | None | |
Compression | None | |
Alpha Is Transparency | true | |
** 텍스처 타입||Sprite (2D and UI)** | ||
Compression | None | |
Alpha Is Transparency | true | |
Sprite Mode | 단일 | |
Mesh Type | Tight |
시각적 요소의 배경으로 사용하는 스프라이트 이미지에 권장되는 임포트 설정은 다음과 같습니다.
프로퍼티: | Value: | |
---|---|---|
** 텍스처 타입||Sprite (2D and UI)** | ||
Compression | None | |
Alpha Is Transparency | true | |
Sprite Mode | 파일에 여러 스프라이트가 포함된 경우에는 Multiple, 그렇지 않으면 Single 사용 | |
Mesh Type | Tight |
시각적 요소의 배경으로 사용하는 SVG 벡터 이미지에 권장되는 임포트 설정은 다음과 같습니다.
프로퍼티: | Value: |
---|---|
Generated Asset Type | UI Toolkit Vector Image |
Tessellation Settings | Basic |
Target Resolution | 만족스러운 결과를 생성하는 최소값 |
팁:
일반적으로 일반 2D 스프라이트만 9슬라이스할 수 있습니다. 그러나 UI 툴킷을 사용하면 텍스처, 렌더 텍스처, SVG 벡터 이미지를 9슬라이스할 수도 있습니다.
이미지를 9슬라이스하려면 다음을 수행합니다.
USS를 사용하여 선택된 이미지를 9슬라이스하려면 다음 단계를 따르십시오.
다음 프로퍼티에 대해 USS, UXML, C# 파일에서 직접 슬라이스 값을 지정할 수도 있습니다.
-unity-slice-left
-unity-slice-right
-unity-slice-top
-unity-slice-bottom
중요:
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.