UnityEditor.TrueTypeFontImporterInspector.SetFontNames C# (CSharp) Method

SetFontNames() private method

private SetFontNames ( string fontNames ) : void
fontNames string
return void
        private void SetFontNames(string fontNames)
        {
            string[] strArray;
            if (fontNames == this.m_DefaultFontNamesString)
            {
                strArray = new string[0];
            }
            else
            {
                char[] separator = new char[] { ',' };
                strArray = fontNames.Split(separator);
                for (int k = 0; k < strArray.Length; k++)
                {
                    strArray[k] = strArray[k].Trim();
                }
            }
            this.m_FontNamesArraySize.intValue = strArray.Length;
            SerializedProperty property = this.m_FontNamesArraySize.Copy();
            for (int i = 0; i < strArray.Length; i++)
            {
                property.Next(false);
                property.stringValue = strArray[i];
            }
            Font[] fallbackFontReferences = (this.target as TrueTypeFontImporter).LookupFallbackFontReferences(strArray);
            this.m_FallbackFontReferencesArraySize.intValue = fallbackFontReferences.Length;
            SerializedProperty property2 = this.m_FallbackFontReferencesArraySize.Copy();
            for (int j = 0; j < fallbackFontReferences.Length; j++)
            {
                property2.Next(false);
                property2.objectReferenceValue = fallbackFontReferences[j];
            }
        }