UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FPackageLocalizationCultureCache Class Reference

#include <PackageLocalizationCache.h>

Public Member Functions

COREUOBJECT_API FPackageLocalizationCultureCache (FPackageLocalizationCache *InOwnerCache, const FString &InCultureName)
 
COREUOBJECT_API void ConditionalUpdateCache ()
 
COREUOBJECT_API void AddRootSourcePath (const FString &InRootPath)
 
COREUOBJECT_API void RemoveRootSourcePath (const FString &InRootPath)
 
COREUOBJECT_API bool AddPackage (const FString &InPackageName)
 
COREUOBJECT_API bool RemovePackage (const FString &InPackageName)
 
COREUOBJECT_API void Empty ()
 
COREUOBJECT_API FName FindLocalizedPackageName (const FName InSourcePackageName)
 

Detailed Description

Package localization cache for a specific culture (may contain a chain of cultures internally based on their priority)

Constructor & Destructor Documentation

◆ FPackageLocalizationCultureCache()

FPackageLocalizationCultureCache::FPackageLocalizationCultureCache ( FPackageLocalizationCache InOwnerCache,
const FString &  InCultureName 
)

Construct a new culture specific cache.

Parameters
InOwnerCacheA pointer to our owner cache. Used to perform an implementation specific search for localized packages (see FPackageLocalizationCache::FindLocalizedPackages).
InCultureNameThe name of the culture this cache is for.

Member Function Documentation

◆ AddPackage()

bool FPackageLocalizationCultureCache::AddPackage ( const FString &  InPackageName)

Add a package (potentially source or localized) to this cache.

Parameters
InPackageNameThe name of the package to add.
Returns
TRUE if the supplied package is a localized asset and was added to the culture cache, FALSE otherwise

◆ AddRootSourcePath()

void FPackageLocalizationCultureCache::AddRootSourcePath ( const FString &  InRootPath)

Add a source path to be scanned the next time ConditionalUpdateCache is called.

Parameters
InRootPathThe root source path to add.

◆ ConditionalUpdateCache()

void FPackageLocalizationCultureCache::ConditionalUpdateCache ( )

Update this cache, but only if it is dirty.

◆ Empty()

void FPackageLocalizationCultureCache::Empty ( )

Restore this cache to an empty state.

◆ FindLocalizedPackageName()

FName FPackageLocalizationCultureCache::FindLocalizedPackageName ( const FName  InSourcePackageName)

Try and find the localized package name for the given source package for culture we represent.

Parameters
InSourcePackageNameThe name of the source package to find.
Returns
The localized package name, or NAME_None if there is no localized package.

◆ RemovePackage()

bool FPackageLocalizationCultureCache::RemovePackage ( const FString &  InPackageName)

Remove a package (potentially source or localized) from this cache.

Parameters
InPackageNameThe name of the package to remove.
Returns
TRUE if the supplied package is a localized asset and was removed from the culture cache, FALSE otherwise

◆ RemoveRootSourcePath()

void FPackageLocalizationCultureCache::RemoveRootSourcePath ( const FString &  InRootPath)

Remove a source path. This will remove it from the pending list, as well as immediately remove any localized package entries mapped from this source root.

Parameters
InRootPathThe root source path to remove.

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