Custom controls
Understand the steps to create and use custom controls.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
You can create custom controls and implement custom logic for user interface elements.
Topic | Description |
|---|---|
| Create custom controls | Understand the basics of creating and using custom controls. |
| Configure the custom control name and visibility in UI Builder | Use the |
| Define UXML attributes for built-in types | Define UXML attributes for a custom control to expose properties in UXML and UI Builder. |
| Define UXML attributes for complex data types | Use attribute converter and UxmlObject to define UXML attributes for complex data types. |
| Customize UXML attributes | Customize UXML attributes' names, behaviors, decorators, and property drawers 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 |
| Troubleshooting custom control library compilation | Troubleshoot issues with custom control library compilation. |