![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Public Member Functions | |
| void | AddChild (TSharedRef< FTestData > InChild) |
| const FText & | GetName () const |
| void | SetName (const FText &InNewName) |
| void | GetChildren (TArray< TSharedPtr< FTestData > > &OutChildren) |
| float | GetNumber () const |
| void | SetNumber (float NewValue) |
Static Public Member Functions | |
| static TSharedRef< FTestData > | Make (const FText &ChildName) |
| static bool | RemoveRecursive (TArray< TSharedPtr< FTestData > > &RemoveFrom, const TSharedPtr< FTestData > &ItemToRemove) |
| static bool | InsertRecursive (TArray< TSharedPtr< FTestData > > &InsertInto, const TSharedRef< FTestData > &ItemToInsert, const TSharedRef< FTestData > &TargetItem, EItemDropZone RelativeLocation) |
| static float | MakeRandomItemHeight () |
| static bool | BinaryProbability (int32 Level) |
| static int32 | GenerateChildren (TSharedRef< FTestData > MakeChildrenForMe, int32 DescendantsLeftToMake, int32 NestingDepth) |
A data item with which we can test lists and trees. It supports having children and having a name.
|
inline |
Add a child to this test data item.
| InChild | A reference to the child being added |
|
inlinestatic |
Recursively add a bunch of descendants to this node. TotalDescendants is how many descendants we should add before we stop.
| MakeChildrenForMe | The node to which to add children |
| DescendantsLeftToMake | How many descendants we still need to make |
| NestingDepth | Track the nesting depth to prevent super-deep nesting |
|
inline |
Populate the OutChildren array with this data item's children.
| OutChildren |
|
inline |
|
inline |
|
inlinestatic |
Recursively look for TargetItem in InsertInto and any of the descendants. Insert ItemToInsert relative to the target. Relative positioning dictated by RelativeLocation.
|
inlinestatic |
|
inlinestatic |
Recursively look for ItemToRemove in RemoveFrom and any of the descendants, and remove ItemToRemove.
Set this data node's name
| InNewName | The new name to assign to this data item. |