FText::RegisterTextGenerator

Registers a factory function to be used with serialization of text generators within [FText](API\Runtime\Core\Internationalization\FText).

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Internationalization/Text.h

Include

#include "Internationalization/Text.h"

Source

/Engine/Source/Runtime/Core/Private/Internationalization/Text.cpp

Syntax

static void RegisterTextGenerator
(
    FName TypeID,
    FCreateTextGeneratorDelegate FactoryFunction
)

Remarks

Registers a factory function to be used with serialization of text generators within FText.

Parameters

Parameter

Description

TypeID

the name under which to register the factory function. Must match ITextGenerator::GetTypeID().

FactoryFunction

the factory function to create the generator instance

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