Is there a function in C++ that returns or gives you the subojects of an actor. I have searched through the documentation but couldn’t find anything there.
subobjects? Do you mean Components? If so, GetComponents()
TArray<UObject*>Children;
ForEachObjectWithOuter(Object, [&Children] (UObject*Chid){ Children.Add(Chid); }, true);
for (const auto &OBJ : Children)
{
OBJ-> // ....
}
1 Like
So, what goes in each of these parameters. Can you please explain.