engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
FLazyObjectPtr结构体 参考

FLazyObjectPtr is a type of weak pointer to a UObject that uses a GUID created at save time. 更多...

#include <LazyObjectPtr.h>

+ 类 FLazyObjectPtr 继承关系图:

Public 成员函数

FORCEINLINE FLazyObjectPtr ()
 Default constructor, sets to null
 
FORCEINLINE FLazyObjectPtr (const UObject *Object)
 Construct from object already in memory
 
FORCEINLINE void operator= (const FUniqueObjectGuid &InObjectID)
 Copy from a unique object identifier
 
FORCEINLINE void operator= (const UObject *Object)
 Copy from an object already in memory
 
- Public 成员函数 继承自 TPersistentObjectPtr< FUniqueObjectGuid >
FORCEINLINE UObject * Get () const
 Dereference the pointer, which may cause it to become valid again. 更多...
 
FORCEINLINE UObject * Get (bool bEvenIfPendingKill) const
 Dereference the lazy pointer, which may cause it to become valid again. 更多...
 
FORCEINLINE FUniqueObjectGuid & GetUniqueID ()
 Non-const version of the above
 
FORCEINLINE const FUniqueObjectGuid & GetUniqueID () const
 Gets the unique object identifier associated with this lazy pointer. 更多...
 
FORCEINLINE bool IsNull () const
 Test if this can never point to a live UObject 更多...
 
FORCEINLINE bool IsPending () const
 Test if this does not point to a live UObject, but may in the future 更多...
 
FORCEINLINE bool IsStale () const
 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. 更多...
 
FORCEINLINE bool IsValid () const
 Test if this points to a live UObject 更多...
 
FORCEINLINE class UObject & operator* () const
 Dereference the pointer
 
FORCEINLINE class UObject * operator-> () const
 Dereference the pointer
 
FORCEINLINE void operator= (const class UObject *Object)
 Copy from an object pointer
 
FORCEINLINE void operator= (const FUniqueObjectGuid &InObjectID)
 Copy from a unique object identifier
 
FORCEINLINE void operator= (const FWeakObjectPtr &Other)
 Copy from an existing weak pointer, reserve IDs if required
 
FORCEINLINE void Reset ()
 Reset the lazy pointer back to the null state
 
FORCEINLINE void ResetWeakPtr ()
 Resets the weak ptr only, call this when ObjectId may change
 
FORCEINLINE TPersistentObjectPtr ()
 Default constructor, will be null
 
FORCEINLINE TPersistentObjectPtr (const FUniqueObjectGuid &InObjectID)
 Construct from a unique object identifier
 

静态 Public 成员函数

static COREUOBJECT_API void PossiblySerializeObjectGuid (UObject *Object, FStructuredArchive::FRecord Record)
 Called by UObject::Serialize so that we can save / load the Guid possibly associated with an object
 
static COREUOBJECT_API void ResetPIEFixups ()
 Called when entering PIE to prepare it for PIE-specific fixups
 

详细描述

FLazyObjectPtr is a type of weak pointer to a UObject that uses a GUID created at save time.

It will change back and forth between being valid or pending as the referenced object loads or unloads. It has no impact on if the object is garbage collected or not. It can't be directly used across a network.

This is useful for cross level references or places where you need to point to an object whose name changes often.


该结构体的文档由以下文件生成: