I’m using a plugin related to FLoadingScreenAttributes, which plays a startup video when the program launches. However, the resolution is incorrect every time it starts. I would like to have a way to set the resolution once during plugin startup. Are there any good methods for achieving this?
UWorld* pWorld = nullptr;
if (GEngine && GEngine->GetWorldContexts().Num() > 0)
{
pWorld = GEngine->GetWorldContexts()[0].World();
}
if (pWorld == nullptr)
{
return;
}
UKismetSystemLibrary::ExecuteConsoleCommand(pWorld , TEXT("r.SetRes 3840x2160w"));