Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > UObject > FClassTree
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/ClassTree.h |
Include | #include "UObject/ClassTree.h" |
void ReplaceChild
&40;
UClass &42; NewChild,
FClassTree &42; CurrentChild
&41;
Remarks
Replaces an existing child with the class specified, and changes the existing child's parent node to the new child. For example, when changing NodeA -> NodeB -> NodeC to NodeA -> NodeC -> NodeB, NewChild is NodeC, and CurrentChild is NodeB
Parameters
Name | Description |
---|---|
NewChild | the class that should be inserted into the chain between this node and the CurrentChild node |
CurrentChild | the existing node that should become a child of the new node |