Я хотел бы получать проценты www.progress в целых, а не дробных значениях, при этом начинаю ловить:
FormatException: Input string was not in the correct format
System.Int32.Parse (System.String s)
на
Синтаксис:
Используется csharp
int progress = int.Parse(www.progress.ToString()) * 100;
GUI.Label(new Rect(Screen.width /2 -200 ,Screen.height /2 -10, 200, 20), "Loading: " + progress + "%", red_text);
GUI.Label(new Rect(Screen.width /2 -200 ,Screen.height /2 -10, 200, 20), "Loading: " + progress + "%", red_text);
Буду благодарен за помощь.