UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RuntimeOptionsBase.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "RuntimeOptionsBase.generated.h"
7
36UCLASS(config=RuntimeOptions, BlueprintType, Abstract, MinimalAPI)
38{
40
41public:
43
44 //~UObject interface
45 ENGINE_API virtual void PostInitProperties() override;
46 ENGINE_API virtual void PostReloadConfig(FProperty* PropertyThatWasLoaded) override;
47 //~End of UObject interface
48
49 // Returns the runtime options for the specified type, typically you will make a non-templated overload of Get in your subclass
50 template<typename TRuntimeOptionsSubclass>
52 {
54 }
55
56protected:
57 // The command prefix for all options declared in a subclass (defaults to "ro", so a property named TestProp would be exposed as ro.TestProp)
59
60protected:
61 // Applies overrides from the command line
62 ENGINE_API void ApplyCommandlineOverrides();
63 ENGINE_API void RegisterSupportedConsoleVariables(bool bDuringReload);
64 ENGINE_API void InitializeRuntimeOptions();
65};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition UnrealType.h:174
Definition Object.h:95
Definition RuntimeOptionsBase.h:38
static const TRuntimeOptionsSubclass & Get()
Definition RuntimeOptionsBase.h:51
FString OptionCommandPrefix
Definition RuntimeOptionsBase.h:58