Version: 2022.3
Coordinate and position systems
Introduction to UXML

Structure UI with UXML

Unity Extensible Markup Language (UXML) files are text files that define the structure of the UI. UXML along with USS makes it easier for less technical users to define the layout and the style of the UI. This leaves developers with technical tasks, such as importing assets, defining logic, and processing data.

Topic 描述
Introduction to UXML Understand the format of the UXML.
Add styles to UXML Learn how to reference a USS file in UXML.
Reuse UXML files Learn how to import a UXML file and override the attributes.
Reference other files from UXML Understand the src and the path attributes used to reference other files from UXML.
Load UXML and USS from C# scripts Load UXML and USS as you would load a regular Unity asset.
Instantiate UXML with C# Learn how to instantiate UXML with C# by an example.
Find visual elements with UQuery Use UQuery to retrieve elements and learn UQuery best practices.
Coordinate and position systems
Introduction to UXML
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961