You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
14 lines
584 B
C++
14 lines
584 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "DrawPrimitiveDebuggerConfig.h"
|
|
|
|
void UDrawPrimitiveDebuggerUserSettings::SetFontSize(const int32 InFontSize)
|
|
{
|
|
UDrawPrimitiveDebuggerUserSettings* Settings = GetMutableDefault<UDrawPrimitiveDebuggerUserSettings>();
|
|
Settings->FontSize = FMath::Clamp(InFontSize, 1, 100);
|
|
|
|
const FString ConfigFileName = Settings->GetProjectUserConfigFilename();
|
|
GConfig->SetInt(TEXT("/Script/DrawPrimitiveDebugger.DrawPrimitiveDebuggerUserSettings"), TEXT("FontSize"), Settings->FontSize, *ConfigFileName);
|
|
GConfig->Flush(false);
|
|
}
|