Choose your operating system:
Windows
macOS
Linux
| FObjectPtr
|
Module |
|
Header |
/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectPtr.h |
Include |
#include "UObject/ObjectPtr.h" |
template<typename T>
struct TObjectPtr : private FObjectPtr
TObjectPtr is a type of pointer to a UObject that is meant to function as a drop-in replacement for raw pointer member properties. It is size equivalent to a 64-bit pointer and supports access tracking and optional lazy load behavior in editor builds. It stores either the address to the referenced object or (in editor builds) an index in the object handle table that describes a referenced object that hasn't been loaded yet. It is serialized identically to a raw pointer to a UObject. When resolved, its participation in garbage collection is identical to a raw pointer to a UObject.
This is useful for automatic replacement of raw pointers to support advanced cook-time dependency tracking and editor-time lazy load use cases. See UnrealObjectPtrTool for tooling to automatically replace raw pointer members with FObjectPtr/TObjectPtr members instead.
Name | Description | |
---|---|---|
|
TObjectPtr() |
|
|
TObjectPtr ( |
|
|
TObjectPtr ( |
|
|
TObjectPtr |
|
|
TObjectPtr ( |
|
|
TObjectPtr ( |
|
|
TObjectPtr ( |
Name | Description | ||
---|---|---|---|
|
T * |
Get() |
: OBJPTR: There is a risk that the FObjectPtr is storing a reference to the wrong type. |
Name | Description | ||
---|---|---|---|
|
operator T *() |
||
|
operator T *&() |
||
|
operator U *() |
||
|
operator UPTRINT() |
||
|
operator!= ( |
||
|
T & |
operator*() |
|
|
TObjectPtr< ... |
operator= ( |
|
|
TObjectPtr< ... |
operator= ( |
|
|
TObjectPtr< ... |
operator= ( |
|
|
TObjectPtr< ... |
operator= |
|
|
TObjectPtr< ... |
operator= ( |
|
|
TObjectPtr< ... |
operator= ( |
|
|
operator== ( |
||
|
T * |
operator->() |
Name |
Description |
---|---|
ElementType |