Hey guys, I am trying to make a string adjust perfectly in its length. I am using this code:
if(k.Killer.Length > maxString)
{
k.Killer.Length = Mathf.Clamp(k.Killer.Length, 0, maxString);
k.Killer = k.Killer += "...";
}
The problem is that String.Lenght is read only and cannot be manipulated, anyone know how to change this? I want the amount of characters in the string to equal maxString.
Cheers!