Skip to content
Discussion options

You must be logged in to vote

SerializeReferenceExtensions 2.0.0 supports both IMGUI and UI Toolkit. A selected subtype's custom drawer still needs an implementation that its parent Inspector can use.

Unity cannot run a UI Toolkit PropertyDrawer inside an IMGUI custom Inspector or a parent IMGUI drawer. A drawer that only implements CreatePropertyGUI therefore needs a UI Toolkit parent. To support IMGUI parents too, provide OnGUI and the corresponding GetPropertyHeight implementation.

In Unity 2021.3, use a custom UI Toolkit Inspector to host UI Toolkit-only drawers. From Unity 2022.2, the default Inspector uses UI Toolkit for custom property drawers, while custom Inspectors can still use IMGUI.

Unity's PropertyDrawer…

Replies: 1 comment

Comment options

mackysoft
Oct 20, 2026
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by mackysoft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant