ドキュメント

Unity Engine


Unity Engine


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 controlsUnderstand the basics of creating and using custom controls.
Configure the custom control name and visibility in UI BuilderUse the
UxmlElement
attribute to change how your custom controls appear in UXML and in the UI Builder library.
Define UXML attributes for built-in typesDefine UXML attributes for a custom control to expose properties in UXML and UI Builder.
Define UXML attributes for complex data typesUse attribute converter and UxmlObject to define UXML attributes for complex data types.
Customize UXML attributesCustomize UXML attributes' names, behaviors, decorators, and property drawers in UI Builder.
Bind custom control to dataBind custom controls to serialized properties to synchronize values between the control and the property.
Define a namespace prefixUse
UxmlNamespacePrefix
attribute to define a namespace prefix.
Troubleshooting custom control library compilationTroubleshoot issues with custom control library compilation.

Additional resources