Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/Internationalization > API/Runtime/CoreUObject/Internationalization/TextNamespaceUtil__CopyTextToPac-
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/Internationalization/TextPackageNamespaceUtil.h |
| Include | #include "Internationalization/TextPackageNamespaceUtil.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Internationalization/TextPackageNamespaceUtil.cpp |
namespace TextNamespaceUtil
{
FText TextNamespaceUtil&58;&58;CopyTextToPackage
&40;
const FText & InText,
UPackage &42; InPackage,
const ETextCopyMethod InCopyMethod,
const bool bAlwaysApplyPackageNamespace
&41;
}
Remarks
Make a copy of the given text that's valid to use with the given package, optionally preserving its existing key.
Returns the result verbatim if there is no change when applying the package namespace to the text. A copy of the given text that's valid to use with the given package.
Parameters
| Name | Description |
|---|---|
| InText | The current FText instance. |
| InPackage/InObject | The package (or object to get the owner package from) to get the namespace for (will call EnsurePackageNamespace). |
| InCopyMethod | The method that should be used to copy the FText instance. |
| bAlwaysApplyPackageNamespace | If true, this will always apply the package namespace to the text namespace (always treated as Verbatim when USE_STABLE_LOCALIZATION_KEYS is false). If false, this will only apply the package namespace if the text namespace already contains package namespace makers. |