Ok I have a GUI Text that i need to turn into a int
public Text Blah;
public int BLahINT;
BLahINT = Blah.text
everything I’ve looked up is how to display a int as TEXt cn u get a int from Text without making it a string first?
Ok I have a GUI Text that i need to turn into a int
public Text Blah;
public int BLahINT;
BLahINT = Blah.text
everything I’ve looked up is how to display a int as TEXt cn u get a int from Text without making it a string first?
int.TryParse(Blah.text, out BLahINT);
if you have numbers in your text then this will work but if you have even a single alphabet then it might no work
This will be converted
125489
This will not
text125489