I am creating an
EditorInspectorPlugin to inspect custom resources. I am trying to emulate the default behavior: when clicking on a resource in the Inspector, it opens a “subview” where you can edit it and its subresources (if any).
I found a couple of ways to do it and tried all of them:
Both methods open the resource editor in the inspector. The problem is that, instead of opening the resource a subview (like in the image above), it opens a whole new inspector view. Similarly to older Godot 3 versions.
I tried various options and arguments, and the documentation doesn’t say anything about this.
Is it possible to replicate the default behavior without having to rewrite the whole Resource inspector UI?