Navigation
API > API/Runtime > API/Runtime/CoreUObject
Package localization cache for a specific culture (may contain a chain of cultures internally based on their priority)
| Name | FPackageLocalizationCultureCache |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Internationalization/PackageLocalizationCache.h |
| Include Path | #include "Internationalization/PackageLocalizationCache.h" |
Syntax
class FPackageLocalizationCultureCache
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPackageLocalizationCultureCache
(
FPackageLocalizationCache* InOwnerCache, |
Construct a new culture specific cache. | Internationalization/PackageLocalizationCache.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| LocalizedPackagesCS | FCriticalSection | Critical section preventing concurrent access to our data. | Internationalization/PackageLocalizationCache.h | |
| OwnerCache | FPackageLocalizationCache * | A pointer to our owner cache. | Internationalization/PackageLocalizationCache.h | |
| PendingSourceRootPathsToSearch | TArray< FString > | An array of source paths we should scan on the next call to ConditionalUpdateCache. | Internationalization/PackageLocalizationCache.h | |
| PrioritizedCultureNames | TArray< FString > | An array of culture names that should be scanned, sorted in priority order. | Internationalization/PackageLocalizationCache.h | |
| PrioritizedCultureNamesAndVerseIdentifiers | TArray< FString > | An array of culture names and Verse identifiers that should be scanned, sorted in priority order. | Internationalization/PackageLocalizationCache.h | |
| SourcePackagesToLocalizedPackages | TMap< FName, TArray< FName > > | Mapping between source package names, and prioritized localized package names. | Internationalization/PackageLocalizationCache.h | |
| SourcePathsToLocalizedPaths | TMap< FString, TArray< FString > > | Mapping between source paths, and prioritized localized paths. | Internationalization/PackageLocalizationCache.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AddPackage
(
const FString& InPackageName |
Add a package (potentially source or localized) to this cache. | Internationalization/PackageLocalizationCache.h | |
void AddRootSourcePath
(
const FString& InRootPath |
Add a source path to be scanned the next time ConditionalUpdateCache is called. | Internationalization/PackageLocalizationCache.h | |
void ConditionalUpdateCache() |
Update this cache, but only if it is dirty. | Internationalization/PackageLocalizationCache.h | |
void Empty() |
Restore this cache to an empty state. | Internationalization/PackageLocalizationCache.h | |
| Try and find the localized package name for the given source package for culture we represent. | Internationalization/PackageLocalizationCache.h | ||
bool RemovePackage
(
const FString& InPackageName |
Remove a package (potentially source or localized) from this cache. | Internationalization/PackageLocalizationCache.h | |
void RemoveRootSourcePath
(
const FString& InRootPath |
Remove a source path. | Internationalization/PackageLocalizationCache.h |