UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FDefaultPackageLocalizationCache Class Reference
+ Inheritance diagram for FDefaultPackageLocalizationCache:

Public Member Functions

virtual ~FDefaultPackageLocalizationCache ()
 
- Public Member Functions inherited from FPackageLocalizationCache
COREUOBJECT_API FPackageLocalizationCache ()
 
virtual COREUOBJECT_API ~FPackageLocalizationCache ()
 
virtual COREUOBJECT_API void InvalidateRootSourcePath (const FString &InRootPath) override
 
virtual COREUOBJECT_API void ConditionalUpdateCache () override
 
virtual COREUOBJECT_API FName FindLocalizedPackageName (const FName InSourcePackageName) override
 
virtual COREUOBJECT_API FName FindLocalizedPackageNameForCulture (const FName InSourcePackageName, const FString &InCultureName) override
 
- Public Member Functions inherited from IPackageLocalizationCache
virtual ~IPackageLocalizationCache ()
 

Protected Member Functions

virtual void FindLocalizedPackages (const TMap< FString, TArray< FString > > &NewSourceToLocalizedPaths, TMap< FName, TArray< FName > > &InOutSourcePackagesToLocalizedPackages) override
 
virtual void FindAssetGroupPackages (const FName InAssetGroupName, const FTopLevelAssetPath &InAssetClassName) override
 
- Protected Member Functions inherited from FPackageLocalizationCache
COREUOBJECT_API TSharedPtr< FPackageLocalizationCultureCacheFindOrAddCacheForCulture_NoLock (const FString &InCultureName)
 
COREUOBJECT_API void ConditionalUpdatePackageNameToAssetGroupCache_NoLock ()
 
COREUOBJECT_API void HandleContentPathMounted (const FString &InAssetPath, const FString &InFilesystemPath)
 
COREUOBJECT_API void HandleContentPathDismounted (const FString &InAssetPath, const FString &InFilesystemPath)
 
COREUOBJECT_API void HandleCultureChanged ()
 

Additional Inherited Members

- Protected Attributes inherited from FPackageLocalizationCache
FCriticalSection LocalizedCachesCS
 
TSharedPtr< FPackageLocalizationCultureCacheCurrentCultureCache
 
TArray< TTuple< FString, TSharedPtr< FPackageLocalizationCultureCache > > > AllCultureCaches
 
TArray< TTuple< FTopLevelAssetPath, FName > > AssetClassesToAssetGroups
 
TMap< FName, FNamePackageNameToAssetGroup
 
bool bPackageNameToAssetGroupDirty
 

Constructor & Destructor Documentation

◆ ~FDefaultPackageLocalizationCache()

virtual FDefaultPackageLocalizationCache::~FDefaultPackageLocalizationCache ( )
inlinevirtual

Member Function Documentation

◆ FindAssetGroupPackages()

void FDefaultPackageLocalizationCache::FindAssetGroupPackages ( const FName  InAssetGroupName,
const FTopLevelAssetPath InAssetClassName 
)
overrideprotectedvirtual

Find all of the packages using the given asset group class, and update the PackageNameToAssetGroup map with the result.

Parameters
InAssetGroupNameThe name of the asset group packages of this type belong to.
InAssetClassNameThe name of a class used by this asset group.

Implements FPackageLocalizationCache.

◆ FindLocalizedPackages()

void FDefaultPackageLocalizationCache::FindLocalizedPackages ( const TMap< FString, TArray< FString > > &  NewSourceToLocalizedPaths,
TMap< FName, TArray< FName > > &  InOutSourcePackagesToLocalizedPackages 
)
overrideprotectedvirtual

Find all of the localized packages under the given roots, and update the map with the result.

Parameters
NewSourceToLocalizedPathsMap containing a key for each of the the source root paths we're finding localized packages for, e.g. /Game The value for each key is an array of the roots to search for localized packages for that source, e.g. { /Game/L10/hu, /Game/L10/fr }
InOutSourcePackagesToLocalizedPackagesThe map to update. This will accumulate results from each root in order to build a mapping between each source package and its array of prioritized localized packages.

Implements FPackageLocalizationCache.


The documentation for this class was generated from the following file: