Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FWeakObjectPtr
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TStrongObjectPtr< UObject > Pin () |
Get a strong object ptr to the weak pointer. | UObject/WeakObjectPtr.h | |
TStrongObjectPtr< UObject > Pin
(
bool bEvenIfGarbage |
Get a strong object ptr to the weak pointer. | UObject/WeakObjectPtr.h |
Pin()
Description
Get a strong object ptr to the weak pointer. This is an optimized version implying bEvenIfGarbage=false.
| Name | Pin |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/WeakObjectPtr.h |
| Include Path | #include "UObject/WeakObjectPtr.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/WeakObjectPtr.cpp |
TStrongObjectPtr < UObject > Pin() const
TStrongObjectPtr will be invalid if this object is gone or the weak pointer is explicitly null, otherwise a valid TStrongObjectPtr
Pin(bool)
Description
Get a strong object ptr to the weak pointer.
| Name | Pin |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/WeakObjectPtr.h |
| Include Path | #include "UObject/WeakObjectPtr.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/WeakObjectPtr.cpp |
TStrongObjectPtr < UObject > Pin
(
bool bEvenIfGarbage
) const
TStrongObjectPtr will be invalid if this object is gone or the weak pointer is explicitly null, otherwise a valid TStrongObjectPtr
Parameters
| Name | Remarks |
|---|---|
| bEvenIfGarbage | if this is true, Garbage objects are considered valid |