UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ExternalDataLayerHelper.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "CoreFwd.h"
7
8class AActor;
11class UExternalDataLayerInstance;
13struct FAssetData;
14
30
32{
33public:
36
41
46
51
56
57#if WITH_EDITOR
62
65
68
70 ENGINE_API static void ForEachExternalDataLayerLevelPackagePath(const FString& InLevelPackageName, TFunctionRef<void(const FString&)> Func);
71
72 /* Returns the external actor package relative path for an actor package of an actor using External Data Layers.
73 * InExternalDataLayerExternalActorPackagePath format is : /{MountPoint}/{ExternalActorFolder}/{ExternalDataLayerFolder}/{EDL_UID}/{ExternalActorPackagePath}
74 * return format is : /{ExternalActorPackagePath}, empty otherwise
75 */
77#endif
78
79private:
80
81#if WITH_EDITOR
83
89
94 ENGINE_API static bool MoveActorsToExternalDataLayer(const TArray<AActor*>& InActors, const UExternalDataLayerInstance* InExternalDataLayerInstance, FText* OutFailureReason = nullptr);
95
101
102 friend class FDataLayerEditorModule;
103 friend class UActorPartitionSubsystem;
104 friend class UDataLayerEditorSubsystem;
106 friend class UContentBundleEditingSubmodule;
107 friend class UGameFeatureActionConvertContentBundleWorldPartitionBuilder;
108#endif
109 static constexpr FStringView GetExternalDataLayerFolder() { return ExternalDataLayerFolder; }
110 static constexpr FStringView ExternalDataLayerFolder = TEXTVIEW("/EDL/");
111};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define TEXTVIEW(str)
Definition StringView.h:553
Definition Actor.h:257
Definition AssetRegistryTagsContext.h:98
Definition ExternalDataLayerHelper.h:32
static ENGINE_API bool BuildExternalDataLayerActorsRootPath(const FString &InEDLMountPoint, const FExternalDataLayerUID &InExternalDataLayerUID, FString &OutExternalDataLayerRootPath)
Definition ExternalDataLayerHelper.cpp:45
static ENGINE_API FString GetExternalDataLayerLevelRootPath(const UExternalDataLayerAsset *InExternalDataLayerAsset, const FString &InLevelPackagePath)
Definition ExternalDataLayerHelper.cpp:63
static ENGINE_API bool BuildExternalDataLayerRootPath(const FString &InEDLMountPoint, const FExternalDataLayerUID &InExternalDataLayerUID, FString &OutExternalDataLayerRootPath)
Definition ExternalDataLayerHelper.cpp:29
static FString GetExternalStreamingObjectPackageName(const UExternalDataLayerAsset *InExternalDataLayerAsset)
Definition ExternalDataLayerHelper.cpp:23
Definition Text.h:385
Definition Array.h:670
Definition AssetRegistryState.h:50
Definition ActorPartitionSubsystem.h:88
Definition ExternalDataLayerAsset.h:16
Definition ExternalDataLayerEngineSubsystem.h:26
Definition Object.h:95
@ false
Definition radaudio_common.h:23
Definition AssetData.h:162
Definition ExternalDataLayerUID.h:13
Definition ExternalDataLayerHelper.h:16
const UExternalDataLayerInstance * ExternalDataLayerInstance
Definition ExternalDataLayerHelper.h:27
FMoveToExternalDataLayerParams()
Definition ExternalDataLayerHelper.h:17
FMoveToExternalDataLayerParams(const UExternalDataLayerInstance *InExternalDataLayerInstance, bool bInAllowNonUserManaged=false)
Definition ExternalDataLayerHelper.h:22
bool bAllowNonUserManaged
Definition ExternalDataLayerHelper.h:28