Navigation
API > API/Editor > API/Editor/SubobjectDataInterface > API/Editor/SubobjectDataInterface/USubobjectDataSubsystem
Description
Add the given subobject to a new owner. This will remove the subobject from its previous owner if necessary.
| Name | AttachSubobject |
| Type | function |
| Header File | /Engine/Source/Editor/SubobjectDataInterface/Public/SubobjectDataSubsystem.h |
| Include Path | #include "SubobjectDataSubsystem.h" |
| Source | /Engine/Source/Editor/SubobjectDataInterface/Private/SubobjectDataSubsystem.cpp |
UFUNCTION (BlueprintCallable, Category="SubobjectDataSubsystem")
bool AttachSubobject
(
const FSubobjectDataHandle & OwnerHandle,
const FSubobjectDataHandle & ChildToAddHandle
)
true if the child was added successfully
Parameters
| Name | Remarks |
|---|---|
| OwnerHandle | The new owner to attach to |
| ChildToAddHandle | Handle to the subobject that will become a child of the owner |