get list of children in transform unity code example Example: all children of transform foreach(Transform child in transform) { // ... }