Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject > API/Runtime/CoreUObject/UObject/FWeakObjectPtr > API/Runtime/CoreUObject/UObject/FWeakObjectPtr/Pin
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 |
TStrongObjectPtr < UObject > Pin() const
Remarks
Get a strong object ptr to the weak pointer. This is an optimized version implying bEvenIfGarbage=false. TStrongObjectPtr will be invalid if this object is gone or the weak pointer is explicitly null, otherwise a valid TStrongObjectPtr