TWeakPtr::IsValid

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

Choose your operating system:

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