
UI Toolkit: Custom Controls
Tutorial
intermediate
+10XP
15m
Unity Technologies
Custom controls in UI Toolkit allow you to create reusable interface elements that combine structure, styling, and behavior into a single component. This video walks you through building a custom SlideToggle control in UI Toolkit. You’ll see how to expose it to UXML with UxmlElement and UxmlAttribute, style it with USS, and derive from BaseField to support labels, value changes, and data binding.