![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <PackageLocalizationManager.h>
Public Types | |
| typedef TFunction< void(FPackageLocalizationManager &)> | FLazyInitFunc |
Public Member Functions | |
| COREUOBJECT_API void | PerformLazyInitialization () |
| COREUOBJECT_API void | InitializeFromLazyCallback (FLazyInitFunc InLazyInitFunc) |
| COREUOBJECT_API void | InitializeFromCache (const TSharedRef< IPackageLocalizationCache > &InCache) |
| COREUOBJECT_API void | InitializeFromDefaultCache () |
| COREUOBJECT_API FName | FindLocalizedPackageName (const FName InSourcePackageName) |
| COREUOBJECT_API FName | FindLocalizedPackageNameForCulture (const FName InSourcePackageName, const FString &InCultureName) |
| COREUOBJECT_API void | InvalidateRootSourcePath (const FString &InRootPath) |
| COREUOBJECT_API void | ConditionalUpdateCache () |
Static Public Member Functions | |
| static COREUOBJECT_API FPackageLocalizationManager & | Get () |
Singleton class that manages localized package data.
| void FPackageLocalizationManager::ConditionalUpdateCache | ( | ) |
Update this cache, but only if it is dirty.
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. |
| FName FPackageLocalizationManager::FindLocalizedPackageNameForCulture | ( | const FName | InSourcePackageName, |
| const FString & | InCultureName | ||
| ) |
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. |
|
static |
Singleton accessor.
| void FPackageLocalizationManager::InitializeFromCache | ( | const TSharedRef< IPackageLocalizationCache > & | InCache | ) |
Initialize the manager using the given cache. This will perform an initial scan for localized packages.
| InCache | The cache the manager should use. |
| void FPackageLocalizationManager::InitializeFromDefaultCache | ( | ) |
Initialize this manager using the default cache. This will perform an initial scan for localized packages.
| void FPackageLocalizationManager::InitializeFromLazyCallback | ( | FLazyInitFunc | InLazyInitFunc | ) |
Initialize the manager lazily using the given callback. It is expected that this callback calls one of the InitializeFromX functions.
| InLazyInitFunc | The function to call to initialize the manager. |
| void FPackageLocalizationManager::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. eg) when new asset registry state is loaded for a plugin that may invalidate its cached data
| void FPackageLocalizationManager::PerformLazyInitialization | ( | ) |
Initialize the manager from the callback set by InitializeFromLazyCallback. It is expected that this callback calls one of the InitializeFromX functions.