Walking Components
how to inspect and walk the Actor Component Hierarchy

def walk_component(component, indent=2):
"""walk the given component to print its hierarchy"""
print(f"{' '*indent}{component.get_name()}")
# recurse through any immediate children
for child in component.get_children_components(False):
walk_component(child, indent+2)

Last updated