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

#include <TextGeneratorRegistry.h>

Public Member Functions

FText::FCreateTextGeneratorDelegate FindRegisteredTextGenerator (FName TypeID) const
 
void RegisterTextGenerator (FName TypeID, FText::FCreateTextGeneratorDelegate FactoryFunction)
 
void UnregisterTextGenerator (FName TypeID)
 

Static Public Member Functions

static FTextGeneratorRegistryGet ()
 

Detailed Description

Singleton registry of text generator factory functions

Member Function Documentation

◆ FindRegisteredTextGenerator()

FText::FCreateTextGeneratorDelegate FTextGeneratorRegistry::FindRegisteredTextGenerator ( FName  TypeID) const

Returns the text generator factory function registered under the specified name, if any.

Parameters
TypeIDthe name under which to look up the factory function

◆ Get()

FTextGeneratorRegistry & FTextGeneratorRegistry::Get ( )
static

Singleton accessor

◆ RegisterTextGenerator()

void FTextGeneratorRegistry::RegisterTextGenerator ( FName  TypeID,
FText::FCreateTextGeneratorDelegate  FactoryFunction 
)

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

Parameters
TypeIDthe name under which to register the factory function. Must match ITextGenerator::GetTypeID().
FactoryFunctionthe factory function to create the generator instance

◆ UnregisterTextGenerator()

void FTextGeneratorRegistry::UnregisterTextGenerator ( FName  TypeID)

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

Parameters
TypeIDthe name to remove from registration
See also
RegisterTextGenerator

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