UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RuntimePartition.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "CoreMinimal.h"
6#include "RuntimePartition.generated.h"
7
8#define UE_API ENGINE_API
9
11UENUM()
18
19UCLASS(MinimalAPI, Abstract, EditInlineNew, CollapseCategories)
21{
23
24public:
25#if WITH_EDITOR
26 //~ Begin UObject Interface.
27 UE_API virtual void PostEditChangeProperty(FPropertyChangedEvent& InPropertyChangedEvent) override;
28 //~ End UObject Interface.
29
31
32 /*
33 * Represents a cell descriptor, generated by runtime partitions. This is a streaming cell containing actors, without taking into account data layers, content bundles, etc.
34 */
35 struct FCellDesc
36 {
37 FName Name;
38 bool bIsSpatiallyLoaded = false;
39 bool bBlockOnSlowStreaming = false;
40 bool bClientOnlyVisible = false;
41 bool bIs2D = false;
42 int32 Priority = 0;
43
45 int32 Level = 0;
46
48 TOptional<FBox> CellBounds;
49
51 };
52
53 /*
54 * Represents a cell descriptor instance, which is an instance of a cell after being split into data layers, etc. and ready to be converted into a streaming level.
55 */
56 struct FCellDescInstance : public FCellDesc
57 {
59
61 TArray<const UDataLayerInstance*> DataLayerInstances;
62 FGuid ContentBundleID;
63 };
64
66 {
68 };
69
71 {
73 };
74
75 UE_API virtual void SetDefaultValues();
76 virtual bool SupportsHLODs() const PURE_VIRTUAL(URuntimePartition::SupportsHLODs, return true;);
79#endif
81#if WITH_EDITOR
82 virtual bool GenerateStreaming(const FGenerateStreamingParams& InParams, FGenerateStreamingResult& OutResult) PURE_VIRTUAL(URuntimePartition::GenerateStreaming, return false;);
83 virtual FArchive& AppendCellGuid(FArchive& InAr) { return InAr << Name << HLODIndex; }
84#endif
85
86 UPROPERTY()
88
89 UPROPERTY(EditAnywhere, Category = RuntimeSettings, Meta = (DisplayPriority = 3, EditCondition = "HLODIndex == INDEX_NONE", EditConditionHides, HideEditConditionToggle))
90 bool bBlockOnSlowStreaming = false;
91
92 UPROPERTY(EditAnywhere, Category = RuntimeSettings, Meta = (DisplayPriority = 3, EditCondition = "HLODIndex == INDEX_NONE", EditConditionHides, HideEditConditionToggle))
93 bool bClientOnlyVisible;
94
95 UPROPERTY(EditAnywhere, Category = RuntimeSettings, Meta = (DisplayPriority = 3, EditCondition = "HLODIndex == INDEX_NONE", EditConditionHides, HideEditConditionToggle))
97
98 UPROPERTY(EditAnywhere, Category = RuntimeSettings, Meta = (DisplayPriority = 3, EditCondition = "HLODIndex == INDEX_NONE", EditConditionHides, HideEditConditionToggle))
100
101 UPROPERTY(EditAnywhere, Category = RuntimeSettings, Meta = (DisplayPriority = 0))
102 int32 LoadingRange;
103
104 UPROPERTY(EditAnywhere, Category = RuntimeSettings, Meta = (DisplayPriority = 10, DisplayName="Debug - Grid Color"))
105 FLinearColor DebugColor;
106
107 UPROPERTY()
108 int32 HLODIndex;
109
111#if WITH_EDITOR
113#endif
114};
115
116#undef UE_API
@ INDEX_NONE
Definition CoreMiscDefines.h:150
#define PURE_VIRTUAL(func,...)
Definition CoreMiscDefines.h:103
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
#define UENUM(...)
Definition ObjectMacros.h:749
#define UE_API
Definition RuntimePartition.h:8
ERuntimePartitionCellBoundsMethod
Definition RuntimePartition.h:13
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition Archive.h:1208
Definition NameTypes.h:617
Definition Array.h:670
Definition Object.h:95
Definition RuntimePartition.h:21
virtual bool IsValidPartitionTokens(const TArray< FName > &InPartitionTokens) const PURE_VIRTUAL(URuntimePartition
Definition RuntimePartition.h:80
@ false
Definition radaudio_common.h:23
Definition Guid.h:109
Definition Color.h:48
Definition UnrealType.h:6865
Definition Optional.h:131