FPackageLocalizationCache

Common implementation for the package localization cache

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/Internationalization/PackageLocalizationCache.h

Include

#include "Internationalization/PackageLocalizationCache.h"

Syntax

class FPackageLocalizationCache : public IPackageLocalizationCache

Remarks

Common implementation for the package localization cache

Variables

Name Description

Protected variable

TArray< TTuple<...

 

AllCultureCaches

Mapping between a culture name, and the culture specific cache for that culture.

Protected variable

TArray< TTuple<...

 

AssetClassesToAssetGroups

Mapping between a class name, and the asset group the class belongs to (for class specific package localization).

Protected variable

bool

 

bPackageNameToAssetGroupDirty

Protected variable

TSharedPtr< FPa...

 

CurrentCultureCache

Pointer to the culture specific cache for the current culture.

Protected variable

FCriticalSectio...

 

LocalizedCachesCS

Critical section preventing concurrent access to our data.

Protected variable

TMap< FName, FN...

 

PackageNameToAssetGroup

Mapping between a package name, and the asset group it belongs to.

Constructors

Name Description

Public function

FPackageLocalizationCache()

Destructors

Name Description

Public function Virtual

~FPackageLocalizationCache()

Functions

Name Description

Protected function

void

 

ConditionalUpdatePackageNameToAssetGroupCache_NoLock()

Update the mapping of package names to asset groups (if required).

Protected function

void

 

FindAssetGroupPackages

(
    const FName InAssetGroupName,
    const FName InAssetClassName
)

Find all of the packages using the given asset group class, and update the PackageNameToAssetGroup map with the result.

Protected function

void

 

FindLocalizedPackages

(
    const FString& InSourceRoot,
    const FString& InLocalizedRoot,
    TMap< FName, TArray< FName >>& InO...
)

Find all of the localized packages under the given roots, and update the map with the result.

Protected function

TSharedPtr< ...

 

FindOrAddCacheForCulture_NoLock

(
    const FString& InCultureName
)

Try and find an existing cache for the given culture name, and create an entry for one if no such cache currently exists.

Protected function

void

 

HandleContentPathDismounted

(
    const FString& InAssetPath,
    const FString& InFilesystemPath
)

Callback handler for when an existing content path is dismounted.

Protected function

void

 

HandleContentPathMounted

(
    const FString& InAssetPath,
    const FString& InFilesystemPath
)

Callback handler for when a new content path is mounted.

Protected function

void

 

HandleCultureChanged()

Callback handler for when the active culture is changed.

Overridden from IPackageLocalizationCache

Name Description

Public function Virtual

void

 

ConditionalUpdateCache()

Update this cache, but only if it is dirty.

Public function Virtual

FName

 

FindLocalizedPackageName

(
    const FName InSourcePackageName
)

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

Public function Virtual

FName

 

FindLocalizedPackageNameForCulture

(
    const FName InSourcePackageName,
    const FString& InCultureName
)

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss