Answer by AlwaysSunny
Based on your questions I've seen here, you'd really benefit from spending an afternoon in the Learn Unity area of the website, where lots of tutorials address a ton of beginner's questions while...
View ArticleAnswer by BoredMormon
For a one line method to get the array Transform[] children = GetComponentsInChildren(); Transform is also enumerable. So you can avoid the array altogether with: foreach (Transform child in...
View ArticleAnswer by AlwaysSunny
Based on your questions I've seen here, you'd really benefit from spending an afternoon in the Learn Unity area of the website, where lots of tutorials address a ton of beginner's questions while...
View ArticleAnswer by BoredMormon
For a one line method to get the array Transform[] children = GetComponentsInChildren(); Transform is also enumerable. So you can avoid the array altogether with: foreach (Transform child in...
View ArticleAnswer by mzr_developer
List children = new List(); void Start() { foreach (Transform t in transform) { children.Add(t.gameObject); } }
View Article
More Pages to Explore .....