FWeakObjectPtr::IsValid

Test if this points to a live [UObject](API\Runtime\CoreUObject\UObject\UObject).

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/WeakObjectPtr.h

Include

#include "UObject/WeakObjectPtr.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/WeakObjectPtr.cpp

Syntax

bool IsValid() const

Remarks

Test if this points to a live UObject. This is an optimized version implying bEvenIfPendingKill=false, bThreadsafeTest=false.

Returns

true if Get() would return a valid non-null pointer.