unity text int to string code example
Example 1: how to convert int to string unity c#
int your_int = 15;
// Your original integer
string your_string = your_int.ToString();
// The method ToString() converts integers to strings
/*
Answer by Ren Rawbone
*/
Example 2: how to make int to text unity
private void Start()
{
text = GetComponent<Text>();
}
private void Update()
{
text.text = theInt.ToString();
}