UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FPackageLocalizationManager Class Reference

#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 FPackageLocalizationManagerGet ()
 

Detailed Description

Singleton class that manages localized package data.

Member Typedef Documentation

◆ FLazyInitFunc

Member Function Documentation

◆ ConditionalUpdateCache()

void FPackageLocalizationManager::ConditionalUpdateCache ( )

Update this cache, but only if it is dirty.

◆ FindLocalizedPackageName()

FName FPackageLocalizationManager::FindLocalizedPackageName ( const FName  InSourcePackageName)

Try and find the localized package name for the given source package for the active culture.

Parameters
InSourcePackageNameThe name of the source package to find.
Returns
The localized package name, or NAME_None if there is no localized package.

◆ FindLocalizedPackageNameForCulture()

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.

Parameters
InSourcePackageNameThe name of the source package to find.
InCultureNameThe name of the culture to find the package for.
Returns
The localized package name, or NAME_None if there is no localized package.

◆ Get()

FPackageLocalizationManager & FPackageLocalizationManager::Get ( )
static

Singleton accessor.

Returns
The singleton instance of the localization manager.

◆ InitializeFromCache()

void FPackageLocalizationManager::InitializeFromCache ( const TSharedRef< IPackageLocalizationCache > &  InCache)

Initialize the manager using the given cache. This will perform an initial scan for localized packages.

Parameters
InCacheThe cache the manager should use.

◆ InitializeFromDefaultCache()

void FPackageLocalizationManager::InitializeFromDefaultCache ( )

Initialize this manager using the default cache. This will perform an initial scan for localized packages.

◆ InitializeFromLazyCallback()

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.

Parameters
InLazyInitFuncThe function to call to initialize the manager.

◆ InvalidateRootSourcePath()

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

◆ PerformLazyInitialization()

void FPackageLocalizationManager::PerformLazyInitialization ( )

Initialize the manager from the callback set by InitializeFromLazyCallback. It is expected that this callback calls one of the InitializeFromX functions.


The documentation for this class was generated from the following files: