Ideas: To convert an int to a string, use the ToString() function and put in the desired ASCII code.
How To Convert Int To String Unity C?
ToString() is an inheritor of the Object class that can be utilized to generate the string which is the actual object. It also applies to the Stack. It will return a string that corresponds to that current object of the stack.
Syntax: the public string virtual ToString ();
Return value: The return value of this function is a string.
For example, to convert 18 to a string
int i = 18; string str = i.ToString(); // str ="18"
Here is my sample when use the ToString() function
When use the Format(,) function
Here is the code I have run successfully, you can refer to it