Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > Internationalization
Inheritance Hierarchy
- IPackageLocalizationCache
- FPackageLocalizationCache
- FEnginePackageLocalizationCache
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/Internationalization/PackageLocalizationCache.h |
Include | #include "Internationalization/PackageLocalizationCache.h" |
Syntax
class FPackageLocalizationCache : public IPackageLocalizationCache
Remarks
Common implementation for the package localization cache
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TArray< TTuple< FString, TSharedPtr< FPackageLocalizationCultureCache > > > | AllCultureCaches | Mapping between a culture name, and the culture specific cache for that culture. |
![]() |
TArray< TTuple< FTopLevelAssetPath, FName > > | AssetClassesToAssetGroups | Mapping between a class name, and the asset group the class belongs to (for class specific package localization). |
![]() |
bool | bPackageNameToAssetGroupDirty | |
![]() |
TSharedPtr< FPackageLocalizationCultureCache > | CurrentCultureCache | Pointer to the culture specific cache for the current culture. |
![]() |
FCriticalSection | LocalizedCachesCS | Critical section preventing concurrent access to our data. |
![]() |
TMap< FName, FName > | PackageNameToAssetGroup | Mapping between a package name, and the asset group it belongs to. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Update the mapping of package names to asset groups (if required). | |
![]() |
void | FindAssetGroupPackages
(
const FName InAssetGroupName, |
Find all of the packages using the given asset group class, and update the PackageNameToAssetGroup map with the result. |
![]() |
void | Find all of the localized packages under the given roots, and update the map with the result. | |
![]() |
TSharedPtr< FPackageLocalizationCultureCache > | FindOrAddCacheForCulture_NoLock
(
const FString& InCultureName |
Try and find an existing cache for the given culture name, and create an entry for one if no such cache currently exists. |
![]() |
void | HandleContentPathDismounted
(
const FString& InAssetPath, |
Callback handler for when an existing content path is dismounted. |
![]() |
void | HandleContentPathMounted
(
const FString& InAssetPath, |
Callback handler for when a new content path is mounted. |
![]() |
void | Callback handler for when the active culture is changed. |
Overridden from IPackageLocalizationCache
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Update this cache, but only if it is dirty. | |
![]() ![]() |
FName | FindLocalizedPackageName
(
const FName InSourcePackageName |
Try and find the localized package name for the given source package for the active culture. |
![]() ![]() |
FName | FindLocalizedPackageNameForCulture
(
const FName InSourcePackageName, |
Try and find the localized package name for the given source package for the given culture. |
![]() ![]() |
void | InvalidateRootSourcePath
(
const FString& InRootPath |
Invalidate any cached state for the given root source path, and add it to the queue of things to process when ConditionalUpdateCache is called. |