string to int c# unity code example Example 1: unity to integer int.Parse("500"); Example 2: c# int int MyInt = 1;