FClassTree::ReplaceChild

Replaces an existing child with the class specified, and changes the existing child's parent node to the new child.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/ClassTree.h

Include

#include "UObject/ClassTree.h"

Syntax

void ReplaceChild
(
    UClass * NewChild,
    FClassTree * CurrentChild
)

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

Parameter

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss