scale UMG at runtime

I know this is an old topic, but I couldn’t find an answer for this on the forums. As a note, for full UI scale one can use the following snippet (found one on the internet):

void UGameFunctionLibrary::UTIL_SetScaleUI(float Scale)
{
	UUserInterfaceSettings* UISettings = GetMutableDefault<UUserInterfaceSettings>(UUserInterfaceSettings::StaticClass());

	if (UISettings)
	{
		UISettings->ApplicationScale = Scale;
	}
}
6 Likes