UI Toolkit: Custom Controls

Tutorial

intermediate

+10XP

15m

Unity Technologies

UI Toolkit: Custom Controls

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.

1. UI Toolkit: Custom controls

Complete this Tutorial