UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
HLODEngineSubsystem.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
Subsystems/EngineSubsystem.h
"
6
#include "
Engine/World.h
"
7
#include "HLODEngineSubsystem.generated.h"
8
9
UCLASS
(MinimalAPI)
10
class
UHLODEngineSubsystem
:
public
UEngineSubsystem
11
{
12
GENERATED_BODY
()
13
14
#if WITH_EDITOR
15
16
public
:
17
//~ Begin USubsystem Interface.
18
ENGINE_API
virtual
void
Initialize
(
FSubsystemCollectionBase
&
Collection
)
override
;
19
ENGINE_API
virtual
void
Deinitialize()
override
;
20
//~ End USubsystem Interface.
21
26
ENGINE_API
bool
CleanupHLODs
(
UWorld
*
InWorld
);
27
32
ENGINE_API
bool
CleanupHLODs
(
ULevel
*
InLevel
);
33
38
ENGINE_API
void
DisableHLODCleanupOnLoad
(
bool
bInDisableHLODCleanup
);
39
44
ENGINE_API
void
DisableHLODSpawningOnLoad
(
bool
bInDisableHLODSpawning
);
45
46
// Should be called when the "Save LOD Actors to HLOD Packages" option is toggled.
47
ENGINE_API
void
OnSaveLODActorsToHLODPackagesChanged
();
48
49
private
:
50
// Recreate LOD actors for all levels in the provided world.
51
void
RecreateLODActorsForWorld
(
UWorld
*
InWorld
,
const
UWorld::InitializationValues
InInitializationValues
);
52
53
// Recreate LOD actors for the given level.
54
void
RecreateLODActorsForLevel
(
ULevel
*
InLevel
,
UWorld
*
InWorld
);
55
56
void
OnPreSaveWorld
(
UWorld
*
InWorld
,
FObjectPreSaveContext
ObjectSaveContext);
57
58
void
UnregisterRecreateLODActorsDelegates
();
59
void
RegisterRecreateLODActorsDelegates
();
60
61
bool
CleanupHLOD
(
class
ALODActor
*
InLODActor
);
62
63
private
:
64
FDelegateHandle
OnPostWorldInitializationDelegateHandle
;
65
FDelegateHandle
OnLevelAddedToWorldDelegateHandle
;
66
FDelegateHandle
OnPreSaveWorlDelegateHandle
;
67
68
bool
bDisableHLODCleanupOnLoad
;
69
bool
bDisableHLODSpawningOnLoad
;
70
71
#endif
// WITH_EDITOR
72
};
73
EChaosVDAccelerationStructureType::Collection
@ Collection
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
EngineSubsystem.h
GENERATED_BODY
#define GENERATED_BODY(...)
Definition
ObjectMacros.h:765
UCLASS
#define UCLASS(...)
Definition
ObjectMacros.h:776
ESlateAttributeBindAction::Initialize
@ Initialize
World.h
ALODActor
Definition
LODActor.h:70
FDelegateHandle
Definition
IDelegateInstance.h:14
FObjectPreSaveContext
Definition
ObjectSaveContext.h:244
FSubsystemCollectionBase
Definition
SubsystemCollection.h:15
UEngineSubsystem
Definition
EngineSubsystem.h:22
UHLODEngineSubsystem
Definition
HLODEngineSubsystem.h:11
ULevel
Definition
Level.h:423
UWorld
Definition
World.h:918
FWorldInitializationValues
Definition
WorldInitializationValues.h:9
Engine
Source
Runtime
Engine
Public
HLOD
HLODEngineSubsystem.h
Generated by
1.9.8