Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TWeakObjectPtr
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TStrongObjectPtr< T > Pin () |
Pin the weak pointer as a strong ptr. | UObject/WeakObjectPtrTemplates.h | |
TStrongObjectPtr< T > Pin
(
bool bEvenIfPendingKill |
Pin the weak pointer and get a strongptr. | UObject/WeakObjectPtrTemplates.h |
Pin()
Description
Pin the weak pointer as a strong ptr. This is an optimized version implying bEvenIfPendingKill=false.
| Name | Pin |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/UObject/WeakObjectPtrTemplates.h |
| Include Path | #include "UObject/WeakObjectPtrTemplates.h" |
TStrongObjectPtr < T > Pin() const
Pin(bool)
Description
Pin the weak pointer and get a strongptr.
| Name | Pin |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/UObject/WeakObjectPtrTemplates.h |
| Include Path | #include "UObject/WeakObjectPtrTemplates.h" |
TStrongObjectPtr < T > Pin
(
bool bEvenIfPendingKill
) const
nullptr if this object is gone or the weak pointer is explicitly null, otherwise a valid uobject pointer
Parameters
| Name | Remarks |
|---|---|
| bEvenIfPendingKill | if this is true, pendingkill objects are considered valid |