Answers for "unity text int to string"

7

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
*/
Posted by: Guest on May-11-2020
1

how to make int to text unity

private void Start()
    {
        text = GetComponent<Text>();
    }
    private void Update()
    {
        text.text = theInt.ToString();
    }
Posted by: Guest on May-27-2021

Browse Popular Code Answers by Language