How to get sub-objects of an actor in C++

From the source file:
Runtime\CoreUObject\Public\UObject\UObjectHash.h

If you’re having trouble with the second parameter, that’s a C++ Lambda function. Ex.:

auto MyLambdaFunction = [&Children] (UObject* Chid)
{
    Children.Add(Chid);
}