Navigation
Unreal Engine C++ API Reference > Runtime > Core > Misc > TTypeContainer > RegisterFactory
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/TypeContainer.h |
Include | #include "Misc/TypeContainer.h" |
template<class R, typename P0, typename... P>
void RegisterFactory
&40;
const TFunction< TSharedRef< R, Mode >(TSharedRef< P0, Mode >, TSharedRef< P, Mode >...)> & CreateFunc
&41;
Remarks
Register a factory function for the specified class.
Parameters
Name | Description |
---|---|
R | The type of class to register the instance for. |
P0 | The first parameter that the factory function requires. |
P | Additional parameters that the factory function requires. |
CreateFunc | The factory function that will create instances. |