/Engine/Source/Runtime/Core/Public/Internationalization/Text.h
This function can be used if the class has a public staticFNamemember named "TypeID".
template<typename T> static void RegisterTextGenerator()