Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Rigs > API/Plugins/ControlRig/Rigs/URigHierarchy > API/Plugins/ControlRig/Rigs/URigHierarchy/Traverse
References
| Module | ControlRig |
| Header | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Rigs/RigHierarchy.h |
| Include | #include "Rigs/RigHierarchy.h" |
| Source | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Private/Rigs/RigHierarchy.cpp |
void Traverse
(
TFunction < void *, bool &)> PerElementFunction,
bool bTowardsChildren
) const
Remarks
Helper function to traverse the hierarchy from the root
Parameters
| Name | Description |
|---|---|
| PerElementFunction | The function to call for each visited element |
| bTowardsChildren | If set to true the traverser walks downwards (towards the children), otherwise upwards (towards the parents) |