Choose your operating system:
Windows
macOS
Linux
| TPersistentObjectPtr
|
Module |
|
Header |
/Engine/Source/Runtime/CoreUObject/Public/UObject/PersistentObjectPtr.h |
Include |
#include "UObject/PersistentObjectPtr.h" |
template<class TObjectID>
struct TPersistentObjectPtr
TPersistentObjectPtr is a template base class for FLazyObjectPtr and FSoftObjectPtr
Name | Description | |
---|---|---|
|
TPersistentObjectPtr() |
Default constructor, will be null |
|
TPersistentObjectPtr ( |
Construct from a unique object identifier |
Name | Description | ||
---|---|---|---|
|
UObject *... |
Get() |
Dereference the pointer, which may cause it to become valid again. |
|
UObject *... |
Get ( |
Dereference the lazy pointer, which may cause it to become valid again. |
|
TObjectID & |
GetUniqueID() |
Non-const version of the above |
|
const TObjec... |
GetUniqueID() |
Gets the unique object identifier associated with this lazy pointer. |
|
IsNull() |
Test if this can never point to a live UObject |
|
|
IsPending() |
Test if this does not point to a live UObject, but may in the future |
|
|
IsStale() |
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. |
|
|
IsValid() |
Test if this points to a live UObject |
|
|
Reset() |
Reset the lazy pointer back to the null state |
|
|
ResetWeakPtr() |
Resets the weak ptr only, call this when ObjectId may change |
Name | Description | ||
---|---|---|---|
|
UObject & |
operator*() |
Dereference the pointer |
|
operator= ( |
Copy from a unique object identifier |
|
|
operator= ( |
Copy from an object pointer |
|
|
operator= ( |
Copy from an existing weak pointer, reserve IDs if required |
|
|
UObject *... |
operator->() |
Dereference the pointer |