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