I’m currently struggling with what appears to be a simple problem. I’m trying to find a list of all children of a given actor. This is what I’m currently doing:
TArray< AActor* > tempChildActors; AActor* owner = GetOwner(); owner->GetAllChildActors( tempChildActors, true ); uint32 count = tempChildActors.Num();
However, the count is still 0. I’m wondering if I’m making some incorrect assumptions. My current setup is that I have a component on a parent actor. In this component, I’m calling the above code to retrieve the parent’s child actors. Here is a picture of the child actors parented.
I feel like I might be missing something very simple here, but I just can’t seem to figure it out.