UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WorldPartitionLevelStreamingPolicy.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
11#pragma once
12
13#include "CoreMinimal.h"
16#include "WorldPartitionLevelStreamingPolicy.generated.h"
17
18struct FResourceSizeEx;
21
22UCLASS()
24{
26
27public:
28 virtual void DrawRuntimeCellsDetails(class UCanvas* Canvas, FVector2D& Offset) override;
29 virtual bool IsStreamingCompleted(const TArray<FWorldPartitionStreamingSource>* InStreamingSources) const override;
30
31#if WITH_EDITOR
33 virtual void PrepareActorToCellRemapping() override;
35 virtual void RemapSoftObjectPath(FSoftObjectPath& ObjectPath) const override;
36 static FString GetCellPackagePath(const FName& InCellName, const UWorld* InWorld);
37
40#endif
41
42 virtual bool ConvertEditorPathToRuntimePath(const FSoftObjectPath& InPath, FSoftObjectPath& OutPath) const override;
43 virtual UObject* GetSubObject(const TCHAR* SubObjectPath) override;
44
45 virtual bool InjectExternalStreamingObject(URuntimeHashExternalStreamingObjectBase* ExternalStreamingObject) override;
46 virtual bool RemoveExternalStreamingObject(URuntimeHashExternalStreamingObjectBase* ExternalStreamingObject) override;
47
49protected:
50 void ForEachActiveRuntimeCell(TFunctionRef<void(const UWorldPartitionRuntimeCell*)> Func) const;
51
52private:
53 const FName* FindCellNameForSubObject(const FString& InSubObjectString, bool bInResolveContainers, FString& OutSubObjectString, const UObject*& OutLevelMountPointContext, UObject*& OutCellOuter) const;
54
55 UPROPERTY()
56 FTopLevelAssetPath SourceWorldAssetPath;
57
58 UPROPERTY()
59 TMap<FName, FName> SubObjectsToCellRemapping;
60
61 UPROPERTY()
63
66
68 TMap<FName, TWeakObjectPtr<URuntimeHashExternalStreamingObjectBase>> SubObjectsToExternalStreamingObjectsRemapping;
69};
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
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_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
uint32 Offset
Definition VulkanMemory.cpp:4033
EWorldPartitionRuntimeCellState
Definition WorldPartitionRuntimeCell.h:202
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition NameTypes.h:617
Definition Array.h:670
Definition AssetRegistryState.h:50
Definition UnrealString.h.inl:34
Definition SubclassOf.h:30
Definition Canvas.h:159
Definition Object.h:95
virtual COREUOBJECT_API void GetResourceSizeEx(FResourceSizeEx &CumulativeResourceSize)
Definition Obj.cpp:2681
Definition WorldPartitionRuntimeHash.h:61
Definition WorldPartitionLevelStreamingPolicy.h:24
Definition WorldPartitionRuntimeCell.h:236
Definition WorldPartitionRuntimeLevelStreamingCell.h:17
Definition WorldPartitionStreamingPolicy.h:94
Definition World.h:918
Definition WorldPartitionActorContainerID.h:44
Definition ResourceSize.h:31
Definition SoftObjectPath.h:56
Definition TopLevelAssetPath.h:38
Definition WorldPartitionRuntimeContainerResolving.h:65