UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
HotReloadInterface.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"
10
12{
13 None = 0x00,
14
15 // Should not return until the recompile and reload has completed
17};
19
21{
22 None = 0x00,
23
24 // Perform a reload of the module after the recompile finishes
26
27 // Report failure if UHT-generated code changes as a result of the recompile
29
30 // Even if this is not code-based project compile with game project as the target for UBT (do not use UnrealEditor target)
31 ForceCodeProject = 0x04,
32};
34
35
39{
40public:
44 static inline IHotReloadInterface* GetPtr()
45 {
46 static FName HotReload("HotReload");
47 return FModuleManager::GetModulePtr<IHotReloadInterface>(HotReload);
48 }
49
53 virtual void SaveConfig() = 0;
54
62
71
75 virtual bool IsCurrentlyCompiling() const = 0;
76
80 virtual void RequestStopCompilation() = 0;
81
85 UE_DEPRECATED(5.0, "AddHotReloadFunctionRemap has been deprecated, use ReloadNotifyFunctionRemap in Reload.h instead")
87
95 virtual ECompilationResult::Type DoHotReloadFromEditor(EHotReloadFlags Flags) = 0;
96
106 virtual ECompilationResult::Type RebindPackages(const TArray<UPackage*>& Packages, EHotReloadFlags Flags, FOutputDevice &Ar) = 0;
107
112 DECLARE_MULTICAST_DELEGATE_OneParam(FHotReloadEvent, bool /* bWasTriggeredAutomatically */ );
113 UE_DEPRECATED(5.0, "OnHotReload has been deprecated, use FCoreUObjectDelegates::ReloadCompleteDelegate.")
114 virtual FHotReloadEvent& OnHotReload() = 0;
115
122 virtual FModuleCompilerStartedEvent& OnModuleCompilerStarted() = 0;
123
133 virtual FModuleCompilerFinishedEvent& OnModuleCompilerFinished() = 0;
134
138 virtual bool IsAnyGameModuleLoaded() = 0;
139};
140
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
void(* FNativeFuncPtr)(UObject *Context, FFrame &TheStack, RESULT_DECL)
Definition CoreNative.h:17
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_MULTICAST_DELEGATE_ThreeParams(DelegateName, Param1Type, Param2Type, Param3Type)
Definition DelegateCombinations.h:67
#define DECLARE_MULTICAST_DELEGATE_OneParam(DelegateName, Param1Type)
Definition DelegateCombinations.h:49
#define ENUM_CLASS_FLAGS(Enum)
Definition EnumClassFlags.h:6
ERecompileModuleFlags
Definition HotReloadInterface.h:21
EHotReloadFlags
Definition HotReloadInterface.h:12
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition NameTypes.h:617
Definition OutputDevice.h:133
Definition HotReloadInterface.h:39
static IHotReloadInterface * GetPtr()
Definition HotReloadInterface.h:44
virtual void SaveConfig()=0
virtual void RequestStopCompilation()=0
virtual FString GetModuleCompileMethod(FName InModuleName)=0
virtual bool IsCurrentlyCompiling() const =0
virtual bool RecompileModule(const FName InModuleName, FOutputDevice &Ar, ERecompileModuleFlags Flags)=0
Definition ModuleInterface.h:14
Definition Array.h:670
Definition Package.h:216
Definition CompilationResult.h:15
Definition UObjectGlobals.h:3250