Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FWeakObjectPtr
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Dereference the weak pointer. This is an optimized version implying bEvenIfGarbage=false. | UObject/WeakObjectPtr.h | ||
| Dereference the weak pointer. | UObject/WeakObjectPtr.h |
Get()
Description
Dereference the weak pointer. This is an optimized version implying bEvenIfGarbage=false.
| Name | Get |
| 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 |
UObject * Get() const
nullptr if this object is gone or the weak pointer is explicitly null, otherwise a valid uobject pointer
Get(bool)
Description
Dereference the weak pointer.
| Name | Get |
| 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 |
UObject * Get
(
bool bEvenIfGarbage
) const
nullptr if this object is gone or the weak pointer is explicitly null, otherwise a valid uobject pointer
Parameters
| Name | Remarks |
|---|---|
| bEvenIfGarbage | if this is true, Garbage objects are considered valid |