Hi.
I’m trying to find all childs with rigibody component and add it to array.
I don’t know how to find them ?
public GameObject [] Ragdoll;
public GameObject Hip;
void Start()
{
Ragdoll = new GameObject [Hip.transform.childCount]; // It counts only first 3 objects !!?
for (int p = 0; p < Hip.transform.childCount; p++)
{
print("p "+ p);
// Ragdoll[p] = Hip.transform.GetChild(p).gameObject;
}
}