I am working on an Editor Utility Widget and I need to access the size of viewport 1 in the editor.
I cannot find a way to get it, any help would be appreciated!
I am working on an Editor Utility Widget and I need to access the size of viewport 1 in the editor.
I cannot find a way to get it, any help would be appreciated!
Did you find the solution? I’m trying to do the same.
Posting my solution here in case somebody will need it:
if (FViewport* Viewport = GEditor->GetActiveViewport())
{
return Viewport->GetSizeXY();
}
Also, don’t forget to add a “UnrealEd” module in your Build.cs script