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