UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ConsoleVariableData.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#if WITH_EDITOR
6
9
10class FCbWriter;
11class ITargetPlatform;
12
13namespace UE::Cook
14{
15
16/* Describe how a console variable is loaded for FCookDependency. */
18{
19public:
22
23 void Save(FCbWriter& Writer) const;
24 bool TryLoad(FCbFieldView Value);
25
27
28 bool TryResolveValue(FString& Value) const;
29
30 bool operator<(const FConsoleVariableData& Other) const;
31 bool operator==(const FConsoleVariableData& Other) const;
32
33private:
34 FString VariableName;
35 const ITargetPlatform* TargetPlatform; // If non-null, query the platform specific value
36 bool bFallbackToNonPlatformValue; // If querying the platform specific value but it's not found then fallback to the non-platform value.
37
38 friend FCbWriter& operator<<(FCbWriter& Writer, const UE::Cook::FConsoleVariableData& Data)
39 {
40 Data.Save(Writer);
41 return Writer;
42 }
43
44 friend bool LoadFromCompactBinary(FCbFieldView Value, UE::Cook::FConsoleVariableData& Data)
45 {
46 return Data.TryLoad(Value);
47 }
48};
49
50}
51
52#endif // #if WITH_EDITOR
bool LoadFromCompactBinary(FCbFieldView Field, FAssetDependency &Dependency)
Definition AssetRegistry.cpp:10420
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
FArchive & operator<<(FArchive &Ar, FEnvQueryDebugProfileData::FStep &Data)
Definition EnvQueryTypes.cpp:489
bool operator<(const FTextFormatString &LHS, const FTextFormatString &RHS)
Definition ITextFormatArgumentModifier.h:147
Definition CompactBinary.h:610
Definition CompactBinaryWriter.h:68
GeometryCollection::Facades::FMuscleActivationData Data
Definition MuscleActivationConstraints.h:15
bool operator==(const FCachedAssetKey &A, const FCachedAssetKey &B)
Definition AssetDataMap.h:501
Definition CookOnTheFly.h:19