FWeakObjectPtr::IsValid

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

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.

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