unity string to int

Posted by Paidboom - 1 year ago

unity string to int : how to convert a string to an int unity?

how to convert string to int js?

let string = "1";
let num = parseInt(string);
//num will equal 1 as a int

unity to integer

int.Parse("500");

c# how to convert string to int

var myInt = int.Parse("123");
var Parsed = int.TryParse("123", out convertedInt);