Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/UObject > API/Runtime/Core/UObject/TWeakObjectPtr
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/UObject/WeakObjectPtrTemplates.h |
| Include | #include "UObject/WeakObjectPtrTemplates.h" |
bool IsStale
(
bool bIncludingIfPendingKill,
bool bThreadsafeTest
) 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 true, pendingkill objects are 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) |