TTypeContainer::RegisterInstance

Registers an existing instance 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, class T>
void RegisterInstance
(
    const TSharedRef< T, Mode > & Instance
)

Remarks

Registers an existing instance for the specified class.

Parameters

Parameter

Description

R

The type of class to register the instance for.

T

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

Instance

The instance of the class to register.

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