I have a prefab that is organized as this:
I want to get the number of obstacles.
I need something like this:
Section1.Find(“obstacles”).getChildCount();
I have a prefab that is organized as this:
I want to get the number of obstacles.
I need something like this:
Section1.Find(“obstacles”).getChildCount();
If you have a reference to the prefab you could try
prefab.transform.Find("obstacles").childCount;