TTypeContainer::GetInstance

Gets a shared pointer to an instance 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>
TSharedRef< R, Mode > GetInstance() const

Remarks

Gets a shared pointer to an instance of the specified class.

Parameters

Parameter

Description

R

The type of class to get an instance for.

A

shared reference to the instance.

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