RealtimeStyleTransferRuntime/Plugins/GameSettings/Source/Private/GameSettingValue.cpp

29 lines
698 B
C++
Raw Permalink Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
#include "GameSettingValue.h"
#define LOCTEXT_NAMESPACE "GameSetting"
//--------------------------------------
// UGameSettingValue
//--------------------------------------
UGameSettingValue::UGameSettingValue()
{
// Values will report to analytics.
bReportAnalytics = true;
}
void UGameSettingValue::OnInitialized()
{
Super::OnInitialized();
#if !UE_BUILD_SHIPPING
ensureAlwaysMsgf(!DescriptionRichText.IsEmpty() || DynamicDetails.IsBound(), TEXT("You must provide a description or it must specify a dynamic details function for settings with values."));
#endif
StoreInitial();
}
#undef LOCTEXT_NAMESPACE