Focus an Editor tab/specific widget programmatically?

I’m looking for a way to focus an editor tab programmatically. I’ve got as far as finding the FGlobalTabmanager and the various functions there, but the issue I’m having is finding a valid SDockTab for the Editor Utility Widget tab I’m trying to focus. The UEditorUtilityWidgetBlueprint actually does have a cached SDockTab variable which points to the tab, but it’s private and otherwise inaccessible. I can access the generated UWidget and therefore the SWidget that’s generated (so the content of the tab I’m trying to focus), but I’m not sure how to get at the owning tab. Any ideas?

1 Like