[SerializeReference] attribute and UI Toolkit custom inspector - does it work?

Unity’s built in inspector for SerializeReference goes as far as drawing managed references, but doesn’t draw a selector. It’s possible to add it, and I have a minimal example here using UI Toolkit: abstract SkillList that can be edited in Inspector

Hopefully Unity add built in support for this one day. Given my example it should (hopefully) be relatively easy for them to do so.

If you have Odin though, you’re better of using Odin’s API to customise your inspector. Note that newer versions support UI Toolkit property drawers within IMGUI.

1 Like