TSharedRef::ToWeakPtr

Converts a shared reference to a weak ptr.

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h

Include

#include "Templates/SharedPointer.h"

Syntax

TWeakPtr< ObjectType, Mode > ToWeakPtr() const

Remarks

Converts a shared reference to a weak ptr.

Returns

Weak pointer to the object

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