Hello, I’ve been searching for a few days now on how to get the specific Editor instance that the Play/Simulate button is pressed from.
I found a hacky way of figuring out the tab (sort of) by grabbing an event from FEditorDelegates:
FEditorDelegates::PreBeginPIE.AddRaw(...)
And using OnTabForegrounded in GlobalTabManager:
OnTabForegroundedDelegateHandle = FGlobalTabmanager::Get()->OnTabForegrounded_Subscribe(
FOnActiveTabChanged::FDelegate::CreateRaw(...);
But I am still unsure about how to find the editor that belongs to the given tabs.
Ultimately I am trying to figure out if the use is PIE in a Blueprint Editor and to get the UBlueprint Object on the PrePIEEvent.
If anyone can help me, it would be greatly appreciated!