How to display a ScriptableObject using UIToolkit

Previously I have been using Editor.CreateEditor + editor.OnInspectorGUI to display a scriptable object inside an IMGUIContainer.

I’m looking to replace this with a UIToolkit native version, but I’m not quite sure how to do that.

It doesn’t look like I can use PropertyField as that takes a SerializedProperty.

Any ideas?

OK it looks like InspectorElement works!

1 Like