converting "int" to "string"

How is this done? i’ve tried everything i know about it but i need to have it done to have an int value displayed in a GUIText component.

Any Help is appreciated

biohazard

In many cases you can just implicit conversion (by adding a int to a string:

Example:

Debug.Log("Implicit convertions "+321);

If you want explicit to convert int to string use ToString() function:

Example:

var t : int = 1234;
Debug.Log(t.ToString());

You should be notice that the “string”,because if the “string” is “123.123”,will wrong!