Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Misc/TypeContainer.h |
Include |
#include "Misc/TypeContainer.h" |
template<class R, typename P0, typename... P>
void RegisterFactory
(
const TFunction< TSharedRef< R, Mode >(TSharedRef< P0, Mode >, TSharedRef< P, Mode >...)> & CreateFunc
)
Register a factory function for the specified class.
Parameter |
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. |