![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <EnginePackageLocalizationCache.h>
Inheritance diagram for FEnginePackageLocalizationCache:Public Member Functions | |
| ENGINE_API | FEnginePackageLocalizationCache () |
| virtual ENGINE_API | ~FEnginePackageLocalizationCache () |
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 ENGINE_API void | FindLocalizedPackages (const TMap< FString, TArray< FString > > &NewSourceToLocalizedPaths, TMap< FName, TArray< FName > > &InOutSourcePackagesToLocalizedPackages) override |
| virtual ENGINE_API void | FindAssetGroupPackages (const FName InAssetGroupName, const FTopLevelAssetPath &InAssetClassName) override |
Protected Member Functions inherited from FPackageLocalizationCache | |
| 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 () |
Additional Inherited Members | |
Protected Attributes inherited from FPackageLocalizationCache | |
| FCriticalSection | LocalizedCachesCS |
| TSharedPtr< FPackageLocalizationCultureCache > | CurrentCultureCache |
| TArray< TTuple< FString, TSharedPtr< FPackageLocalizationCultureCache > > > | AllCultureCaches |
| TArray< TTuple< FTopLevelAssetPath, FName > > | AssetClassesToAssetGroups |
| TMap< FName, FName > | PackageNameToAssetGroup |
| bool | bPackageNameToAssetGroupDirty |
Implementation of a package localization cache that takes advantage of the asset registry.
| FEnginePackageLocalizationCache::FEnginePackageLocalizationCache | ( | ) |
|
virtual |
|
overrideprotectedvirtual |
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. |
Implements FPackageLocalizationCache.
|
overrideprotectedvirtual |
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. |
Implements FPackageLocalizationCache.