![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#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) |
Package localization cache for a specific culture (may contain a chain of cultures internally based on their priority)
| FPackageLocalizationCultureCache::FPackageLocalizationCultureCache | ( | FPackageLocalizationCache * | InOwnerCache, |
| const FString & | InCultureName | ||
| ) |
Construct a new culture specific cache.
| InOwnerCache | A pointer to our owner cache. Used to perform an implementation specific search for localized packages (see FPackageLocalizationCache::FindLocalizedPackages). |
| InCultureName | The name of the culture this cache is for. |
| bool FPackageLocalizationCultureCache::AddPackage | ( | const FString & | InPackageName | ) |
Add a package (potentially source or localized) to this cache.
| InPackageName | The name of the package to add. |
| void FPackageLocalizationCultureCache::AddRootSourcePath | ( | const FString & | InRootPath | ) |
Add a source path to be scanned the next time ConditionalUpdateCache is called.
| InRootPath | The root source path to add. |
| void FPackageLocalizationCultureCache::ConditionalUpdateCache | ( | ) |
Update this cache, but only if it is dirty.
| void FPackageLocalizationCultureCache::Empty | ( | ) |
Restore this cache to an empty state.
Try and find the localized package name for the given source package for culture we represent.
| InSourcePackageName | The name of the source package to find. |
| bool FPackageLocalizationCultureCache::RemovePackage | ( | const FString & | InPackageName | ) |
Remove a package (potentially source or localized) from this cache.
| InPackageName | The name of the package to remove. |
| 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.
| InRootPath | The root source path to remove. |