FText::RegisterTextGenerator

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

Choose your operating system:

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