![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <PackageLocalizationCache.h>
Inheritance diagram for FPackageLocalizationCache:Public Member Functions | |
| 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)=0 |
| virtual void | FindAssetGroupPackages (const FName InAssetGroupName, const FTopLevelAssetPath &InAssetClassName)=0 |
| COREUOBJECT_API TSharedPtr< FPackageLocalizationCultureCache > | FindOrAddCacheForCulture_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 () |
Friends | |
| class | FPackageLocalizationCultureCache |
Common implementation for the package localization cache
| FPackageLocalizationCache::FPackageLocalizationCache | ( | ) |
|
virtual |
|
overridevirtual |
Update this cache, but only if it is dirty.
Implements IPackageLocalizationCache.
|
protected |
Update the mapping of package names to asset groups (if required).
|
protectedpure virtual |
Find all of the packages using the given asset group class, and update the PackageNameToAssetGroup map with the result.
| InAssetGroupName | The name of the asset group packages of this type belong to. |
| InAssetClassName | The name of a class used by this asset group. |
Implemented in FDefaultPackageLocalizationCache, and FEnginePackageLocalizationCache.
|
overridevirtual |
Try and find the localized package name for the given source package for the active culture.
| InSourcePackageName | The name of the source package to find. |
Implements IPackageLocalizationCache.
|
overridevirtual |
Try and find the localized package name for the given source package for the given culture.
| InSourcePackageName | The name of the source package to find. |
| InCultureName | The name of the culture to find the package for. |
Implements IPackageLocalizationCache.
|
protectedpure virtual |
Find all of the localized packages under the given roots, and update the map with the result.
| NewSourceToLocalizedPaths | Map 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 } |
| InOutSourcePackagesToLocalizedPackages | The 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. |
Implemented in FDefaultPackageLocalizationCache, and FEnginePackageLocalizationCache.
|
protected |
Try and find an existing cache for the given culture name, and create an entry for one if no such cache currently exists.
| InCultureName | The name of the culture to find the cache for. |
|
protected |
Callback handler for when an existing content path is dismounted.
| InAssetPath | The package path that was dismounted, eg) /Game |
| InFilesystemPath | The file-system path for the asset path, eg) ../../../MyGame/Content |
|
protected |
Callback handler for when a new content path is mounted.
| InAssetPath | The package path that was mounted, eg) /Game |
| InFilesystemPath | The file-system path for the asset path, eg) ../../../MyGame/Content |
|
protected |
Callback handler for when the active culture is changed.
|
overridevirtual |
Invalidate any cached state for the given root source path, and add it to the queue of things to process when ConditionalUpdateCache is called. eg) when new asset registry state is loaded for a plugin that may invalidate its cached data
Implements IPackageLocalizationCache.
|
friend |
|
protected |
Mapping between a culture name, and the culture specific cache for that culture.
|
protected |
Mapping between a class name, and the asset group the class belongs to (for class specific package localization).
|
protected |
|
protected |
Pointer to the culture specific cache for the current culture.
|
mutableprotected |
Critical section preventing concurrent access to our data.
Mapping between a package name, and the asset group it belongs to.