Navigation
API > API/Runtime > API/Runtime/CoreUObject
Singleton class that manages localized package data.
| Name | FPackageLocalizationManager |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Internationalization/PackageLocalizationManager.h |
| Include Path | #include "Internationalization/PackageLocalizationManager.h" |
Syntax
class FPackageLocalizationManager
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FLazyInitFunc | TFunction< void(FPackageLocalizationManager &)> | Internationalization/PackageLocalizationManager.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActiveCache | TSharedPtr< IPackageLocalizationCache > | Pointer to our currently active cache. Only valid after Initialize has been called. | Internationalization/PackageLocalizationManager.h | |
| bIsInitialized | std::atomic< bool > | The ActiveCache pointer is not atomic, so use a real atomic test for initialization | Internationalization/PackageLocalizationManager.h | |
| InitializationMutex | UE::FMutex | To make sure initialization is thread-safe. | Internationalization/PackageLocalizationManager.h | |
| LazyInitFunc | FLazyInitFunc | Function to call to lazily initialize the manager. | Internationalization/PackageLocalizationManager.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ConditionalUpdateCache() |
Update this cache, but only if it is dirty. | Internationalization/PackageLocalizationManager.h | |
| Try and find the localized package name for the given source package for the active culture. | Internationalization/PackageLocalizationManager.h | ||
| Try and find the localized package name for the given source package for the given culture. | Internationalization/PackageLocalizationManager.h | ||
void InitializeFromCache
(
const TSharedRef< IPackageLocalizationCache >& InCache |
Initialize the manager using the given cache. | Internationalization/PackageLocalizationManager.h | |
void InitializeFromDefaultCache () |
Initialize this manager using the default cache. | Internationalization/PackageLocalizationManager.h | |
void InitializeFromLazyCallback
(
FLazyInitFunc InLazyInitFunc |
Initialize the manager lazily using the given callback. | Internationalization/PackageLocalizationManager.h | |
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. | Internationalization/PackageLocalizationManager.h | |
void PerformLazyInitialization () |
Initialize the manager from the callback set by InitializeFromLazyCallback. | Internationalization/PackageLocalizationManager.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FPackageLocalizationManager & Get() |
Singleton accessor. | Internationalization/PackageLocalizationManager.h |