TTypeContainer::RegisterClass

Registers a class for instances of 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, class T, typename... P>
void RegisterClass
(
    ETypeContainerScope Scope
)

Remarks

Registers a class for instances of the specified class.

Parameters

Parameter

Description

R

The type of class to register an instance class for.

T

Tye type of class to register (must be the same as or derived from R).

P

The constructor parameters that the class requires.

Scope

The scope at which instances must be unique (default = Process).

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