UI Toolkit for making editor extensions
The following is intended for informational purposes only, and may not be incorporated into any contract. No purchasing decisions should be made based on the following materials. Unity is not committing to deliver any functionality, features or code. The development, timing and release of all products, functionality and features are at the sole discretion of Unity, and are subject to change.
If you have accepted to use functional cookies and logged in using your Unity ID at the top right of the page, then sharing feedback is as simple as clicking a card below, selecting a topic’s importance, adding your point of view, and submitting. If you prefer not to accept functional cookies or log in, you will be prompted to enter an email address and validate it, so we know how to reach out when the topic evolves. For more information read the Feedback and privacy terms.
Formerly known as UI Elements, UI Toolkit is a new asset-based, retained-mode GUI framework. It released in Unity 2019, for creating user interfaces used in editor tools and custom inspectors.
The 2022.1 release is a significant step towards our goal of providing a single solution for producing user interfaces, and marks the point at which UI Toolkit becomes the recommended solution over IMGUI for making Editor UI.
Some of the highlights:
- New and improved standard controls: New Multi-column TreeView and ListView, updated InputField and Label.
- Programmatically draw vector shapes to customize visual elements using the new Vector Drawing API.
- Write Custom Inspectors and PropertyDrawers using UI Toolkit.
In 2022.2, UI Toolkit received many other improvements for when creating Editor UI:
- The Inspector Window now uses UI Toolkit by default while falling back on IMGUI to keep compatibility with existing PropertyDrawer and Editor implementations
- All the main Unity attribute and type PropertyDrawers have been ported to UI Toolkit
- Improved documentation with more topics about the UI Toolkit feature set and migration from IMGUI
- Various performance optimizations