Navigation
API > API/Runtime > API/Runtime/CoreUObject
TLazyObjectPtr is the templatized version of the generic FLazyObjectPtr. NOTE: This will be deprecated in a future engine version and new features should use TSoftObjectPtr instead.
| Name | TLazyObjectPtr |
| Type | struct |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/LazyObjectPtr.h |
| Include Path | #include "UObject/LazyObjectPtr.h" |
Syntax
template<class T>
struct TLazyObjectPtr : private FLazyObjectPtr
Inheritance Hierarchy
- TPersistentObjectPtr → FLazyObjectPtr → TLazyObjectPtr
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| UObject/LazyObjectPtr.h | |||
TLazyObjectPtr
(
TLazyObjectPtr< T >&& |
UObject/LazyObjectPtr.h | ||
TLazyObjectPtr
(
const TLazyObjectPtr< T >& |
UObject/LazyObjectPtr.h | ||
TLazyObjectPtr
(
const TLazyObjectPtr< U >& Other |
Construct from another lazy pointer with implicit upcasting allowed | UObject/LazyObjectPtr.h | |
TLazyObjectPtr
(
T* Object |
Construct from an object pointer | UObject/LazyObjectPtr.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ElementType | T | UObject/LazyObjectPtr.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T * Get() |
Dereference the lazy pointer. | UObject/LazyObjectPtr.h | |
uint32 GetLazyObjecPtrTypeHash() |
Hash function. | UObject/LazyObjectPtr.h | |
const FUniqueObjectGuid & GetUniqueID () |
Gets the unique object identifier associated with this lazy pointer. | UObject/LazyObjectPtr.h | |
bool IsNull() |
Test if this can never point to a live UObject | UObject/LazyObjectPtr.h | |
bool IsPending() |
Test if this does not point to a live UObject, but may in the future | UObject/LazyObjectPtr.h | |
bool 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. | UObject/LazyObjectPtr.h | |
bool IsValid() |
Test if this points to a live UObject | UObject/LazyObjectPtr.h | |
void Reset() |
Reset the lazy pointer back to the null state | UObject/LazyObjectPtr.h | |
void SerializePtr
(
FArchive& Ar |
UObject/LazyObjectPtr.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator bool() |
Dereference lazy pointer to see if it points somewhere valid | UObject/LazyObjectPtr.h | |
bool operator!=
(
TYPE_OF_NULLPTR |
Compare for inequality with null | UObject/LazyObjectPtr.h | |
bool operator!=
(
const TLazyObjectPtr< U >& Rhs |
UObject/LazyObjectPtr.h | ||
bool operator!=
(
const U* Rhs |
Compare for inequality with a raw pointer | UObject/LazyObjectPtr.h | |
T & operator*() |
Dereference the lazy pointer | UObject/LazyObjectPtr.h | |
void operator=
(
const FUniqueObjectGuid& InObjectID |
Copy from a unique object identifier WARNING: this doesn't check the type of the object is correct, because the object corresponding to this ID may not even be loaded! | UObject/LazyObjectPtr.h | |
TLazyObjectPtr< T > & operator=
(
TLazyObjectPtr< T >&& |
UObject/LazyObjectPtr.h | ||
TLazyObjectPtr< T > & operator=
(
const TLazyObjectPtr< T >& |
UObject/LazyObjectPtr.h | ||
TLazyObjectPtr< T > & operator=
(
const TLazyObjectPtr< U >& Other |
Assign from another lazy pointer with implicit upcasting allowed | UObject/LazyObjectPtr.h | |
void operator=
(
T* Object |
Copy from an object pointer | UObject/LazyObjectPtr.h | |
bool operator==
(
TYPE_OF_NULLPTR |
Compare to null | UObject/LazyObjectPtr.h | |
bool operator==
(
const TLazyObjectPtr< U >& Rhs |
Compare with another TLazyObjectPtr of related type | UObject/LazyObjectPtr.h | |
bool operator==
(
const U* Rhs |
Compare for equality with a raw pointer | UObject/LazyObjectPtr.h | |
T * operator->() |
Dereference the lazy pointer | UObject/LazyObjectPtr.h |