Version: 2023.2
Structure UI with C# scripts
Create a custom control

Custom controls

You can create custom controls and implement custom logic for user interface elements.

Topic 描述
Create custom controls Understand the basics of creating and using custom controls.
Customize UXML tag names and attributes Understand how to customize a UXML tag name, create custom attributes for a custom control, and add attribute decorators in UI Builder.
Bind custom control to data Bind custom controls to serialized properties to synchronize values between the control and the property.
Define a namespace prefix Use UxmlNamespacePrefix attribute to define a namespace prefix.

其他资源

Structure UI with C# scripts
Create a custom control
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961