for each loop in unity code example Example: for loop unity for (int i = 0; i < 50; i++) { //Do something 50 times }