Get All Attached Children Inc All Childrens Attached

Hey,

I want to recursively get all attached children from an actor descending down the chain until all children from all attached actors are stored in an array.

The Mesh->GetAttachedActors() return an array of actors, so I just need some help figuring out how to loop through each of those, get those attached children, loop through those, etc etc, and work the way down the list.

Old Post but… you can use a for loop!

Children is the same as GetAttachedActors()… you can use both

	for (const AActor *Item : Actor->Children)
	{
	
	}

Or


	for (const USceneComponent *Item :  Mesh->GetAttachChildren())
	{		
	
	}