![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#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 FTextGeneratorRegistry & | Get () |
Singleton registry of text generator factory functions
| FText::FCreateTextGeneratorDelegate FTextGeneratorRegistry::FindRegisteredTextGenerator | ( | FName | TypeID | ) | const |
Returns the text generator factory function registered under the specified name, if any.
| TypeID | the name under which to look up the factory function |
|
static |
Singleton accessor
| void FTextGeneratorRegistry::RegisterTextGenerator | ( | FName | TypeID, |
| FText::FCreateTextGeneratorDelegate | FactoryFunction | ||
| ) |
Registers a factory function to be used with serialization of text generators within FText.
| TypeID | the name under which to register the factory function. Must match ITextGenerator::GetTypeID(). |
| FactoryFunction | the factory function to create the generator instance |
Unregisters a factory function to be used with serialization of text generators within FText.
| TypeID | the name to remove from registration |