/Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Rigs/RigHierarchy.h
Returns all Bone elements
[TArray](API\Runtime\Core\Containers\TArray)< [FRigBoneElement](API\Plugins\ControlRig\Rigs\FRigBoneElement) * > GetBones ( bool bTraverse ) const