UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ExternalObjectAndActorDependencyGatherer.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#if WITH_EDITOR
6
9#include "Containers/Array.h"
11#include "Engine/World.h"
12
13struct FARFilter;
15
16//
17// This interface is used by systems who inject ContentBundle/ExternalDataLayers in worlds to inform
18// FExternalObjectAndActorDependencyGatherer of where to locate those external actors and external objects
19// and which CB/EDLs are associated with which world.
20//
21// This is necessary since worlds do not store information linking back to which EDL/CB are injected
22// in them.
23//
25{
26 public:
27
28 // These functions will be invoked while the AssetRegistry lock is held. All the restrictions
29 // and warnings pertaining to IAssetDependencyGathers apply here.
30 //
31 // Replicated here for clarity....
32 //
33 // WARNING: For high performance these callbacks are called inside the critical section of the AssetRegistry.
34 // Attempting to call public functions on the AssetRegistry will deadlock.
35 // To send queries about what assets exist, used the passed-in interface functions instead.
36 //
37 // Aside from that these should be made as simple as possible to execute quickly and without side-effects outside
38 // of the cache (if using a cache).
39 //
40
42 {
44 const class FPathTree& CachedPathTree;
46 };
47
48 virtual void UpdateCache(const FUpdateCacheContext& Context) = 0;
49 virtual TArray<FName> GetPathsForPackage(FName PackagePath) = 0;
50};
51
53{
55
56public:
59
61
62 static ENGINE_API FARFilter GetQueryFilter(FName PackageName, TArray<FString>* OutQueryDirectories = nullptr);
63
65};
66
67#endif
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition AssetRegistryState.h:158
Definition NameTypes.h:617
Definition PathTree.h:13
Definition Array.h:670
Definition AssetRegistryState.h:50
Definition ARFilter.h:193
Definition ARFilter.h:23