Navigation
API > API/Plugins > API/Plugins/StateTreeEditorModule > API/Plugins/StateTreeEditorModule/FStateTreeEditorNode
Description
Fixes UObject instance data of the node, ensuring proper outers and making duplicates unique. Creates any missing instance or execution runtime data.
SeenObjects is threaded through all nodes in a single traversal so that shared UObject references (e.g. from copy-paste) are detected and made unique on the spot, without a separate pre-pass to collect reference counts. Each node adds its live instance objects to the set after processing, so any later node holding the same pointer can immediately DuplicateObject it.
| Name | FixObjectInstances |
| Type | function |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeEditorModule/Public/StateTreeEditorNode.h |
| Include Path | #include "StateTreeEditorNode.h" |
| Source | /Engine/Plugins/Runtime/StateTree/Source/StateTreeEditorModule/Private/StateTreeEditorNode.cpp |
bool FixObjectInstances
(
TSet< UObject * > & SeenObjects,
TNotNull< UObject * > Outer
)
true if any changes were made.
Parameters
| Name | Remarks |
|---|---|
| SeenObjects | Set of UObject instances already assigned to earlier nodes. Updated in place. |
| Outer | Outer used for re-parenting and creating new instances. |