unity convert gameobject to string code example Example: unity to string int i = 5; string iString = i.ToString();