Drawing InspectorGUI content in UIBuilder Window?

Hello fellow programmers,

I was wondering if it is possible to draw the content of InspectorGUI using “base.OnInspectorGUI();” for example, but in a UIBuilder window. I understand that they refer to different elements, but I am looking for a way to display the internal values of a class without having to reimplement the visualization of these again with UIBuilder. Has anyone had any experience with this or have any ideas on how to accomplish this? I would greatly appreciate any input or suggestions.

Thanks,

What are you looking to draw the inspector for?

It’s a Unity object then it’s quite straight forward to use InspectorElement: Unity - Scripting API: InspectorElement

1 Like