Navigation
API > API/Editor > API/Editor/SubobjectDataInterface
A subobject handle is a globally unique identifier for subobjects Upon construction, the handle will be invalid. It is the responsibility of the owning FSubobjectData to set the DataPtr once the subobject data has validated that it has a good context.
| Name | FSubobjectDataHandle |
| Type | struct |
| Header File | /Engine/Source/Editor/SubobjectDataInterface/Public/SubobjectDataHandle.h |
| Include Path | #include "SubobjectDataHandle.h" |
Syntax
USTRUCT (BlueprintType )
struct FSubobjectDataHandle
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSubobjectDataHandle() |
SubobjectDataHandle.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FSubobjectDataHandle() |
SubobjectDataHandle.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| InvalidHandle | const FSubobjectDataHandle | A static representation of an invalid handle. | SubobjectDataHandle.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DataPtr | TSharedPtr< FSubobjectData > | Pointer to the actual subobject data that this handle represents | SubobjectDataHandle.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSubobjectData * GetData() |
SubobjectDataHandle.h | ||
TSharedPtr< FSubobjectData > GetSharedDataPtr() |
Returns a pointer to the subobject data that this is a handle for | SubobjectDataHandle.h | |
bool IsValid() |
True if the Handle is valid (i.e. not INDEX_NONE). This is true once GenerateNewHandle is called | SubobjectDataHandle.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FSubobjectDataHandle& Other |
SubobjectDataHandle.h | ||
bool operator==
(
const FSubobjectDataHandle& Other |
SubobjectDataHandle.h |