TWeakPtr::IsValid

Checks to see if this weak pointer actually has a valid reference to an object

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Templates/SharedPointer.h"

Syntax

const bool IsValid() const

Remarks

Checks to see if this weak pointer actually has a valid reference to an object

Returns

True if the weak pointer is valid and a pin operator would have succeeded

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