Version: 2023.1
言語: 日本語
Relative and absolute positioning
Set background images with an image asset

Set background images

You can use both the Image element and the VisualElement.backgroundImage property to add visual content to your UI. The choice between the two depends on the specific requirements of your application. For more information, refer to Image versus VisualElement.backgroundImage.

Topic 説明
Set background images with an image asset Use an imported or built-in image asset to set a background image for your UI.
Image import settings Apply import settings for Textures, Sprites, and Vector images before you use them as a background for a visual element in the UI Builder.
9-Slice images with UI Toolkit Use 9-Slice images to create resizable UI elements.

その他の参考資料

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