Choose your operating system:
Windows
macOS
Linux
| TPersistentObjectPtr
|
Module |
|
Header |
/Engine/Source/Runtime/CoreUObject/Public/UObject/LazyObjectPtr.h |
Include |
#include "UObject/LazyObjectPtr.h" |
struct FLazyObjectPtr : public TPersistentObjectPtr< FUniqueObjectGuid >
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.
Name | Description | |
---|---|---|
|
FLazyObjectPtr() |
Default constructor, sets to null |
|
FLazyObjectPtr ( |
Construct from object already in memory |
Name | Description | ||
---|---|---|---|
|
FixupForPIE ( |
Fixes up this FLazyObjectPtr to target the right UID as set in PIEGuidMap |
|
|
PossiblySerializeObjectGuid ( |
Called by UObject::Serialize so that we can save / load the Guid possibly associated with an object |
|
|
ResetPIEFixups() |
Called when entering PIE to prepare it for PIE-specific fixups |