UnityEngine.Font.GetMaxVertsForString C# (CSharp) Method

GetMaxVertsForString() public static method

Returns the maximum number of verts that the text generator may return for a given string.

public static GetMaxVertsForString ( string str ) : int
str string Input string.
return int
        public static int GetMaxVertsForString(string str)
        {
            return ((str.Length * 4) + 4);
        }