Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject > API/Runtime/CoreUObject/UObject/FWeakObjectPtr
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 |
bool IsStale
&40;
bool bIncludingIfPendingKill,
bool bThreadsafeTest
&41; const
Remarks
Slightly different than !IsValid(), returns true if this used to point to a UObject, but doesn't any more and has not been assigned or reset in the mean time. true if this used to point at a real object but no longer does.
Parameters
Name | Description |
---|---|
bIncludingIfPendingKill | if this is false, pendingkill objects are not considered stale |
bThreadsafeTest | set it to true when testing outside of Game Thread. Results in false if WeakObjPtr point to an existing object (no flags checked) |