TTypeContainer::RegisterFactory

Register a factory function for the specified class.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/TypeContainer.h

Include

#include "Misc/TypeContainer.h"

Syntax

template<class R, typename P0, typename... P>
void RegisterFactory
(
    const TFunction< TSharedRef< R, Mode >(TSharedRef< P0, Mode >, TSharedRef< P, Mode >...)> & CreateFunc
)

Remarks

Register a factory function for the specified class.

Parameters

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.

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss