Version: 2022.3
言語: 日本語
Set background images with an image asset
9-Slice images with UI Toolkit

Image import settings

After you have imported an image to your project, for the most intuitive results, it’s recommended that you apply certain import settings for Textures, Sprites, and Vector images before you use them as a background for a visual element in the UI Builder.

テクスチャ

The recommended import settings for a Texture image that you use as a background for a visual element:

プロパティ
Texture Type デフォルト
Non-Power of 2 なし
Compression なし
Alpha Is Transparency true
Texture Type Editor GUI and Legacy GUI
Non-Power of 2 なし
Compression なし
Alpha Is Transparency true
Texture Type Sprite (2D and UI)
Compression なし
Alpha Is Transparency true
Sprite Mode Single
Mesh Type Tight

Sprites

The recommended import settings for a Sprite image that you use as a background for a visual element:

プロパティ
Texture Type Sprite (2D and UI)
Compression なし
Alpha Is Transparency true
Sprite Mode Multiple if file contains multiple sprites, Single otherwise
Mesh Type Tight

Vector images

The recommended import settings for a SVG Vector image that you use as a background for a visual element:

プロパティ
Generated Asset Type UI Toolkit Vector Image
Tessellation Settings Basic
Target Resolution Lowest value that produces satisfactory results

Tip:

その他の参考資料

Set background images with an image asset
9-Slice images with UI Toolkit
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961