UnityEditor.TrueTypeFontImporter.LookupFallbackFontReferences C# (CSharp) Method

LookupFallbackFontReferences() private method

private LookupFallbackFontReferences ( string _names ) : UnityEngine.Font[]
_names string
return UnityEngine.Font[]
        internal extern Font[] LookupFallbackFontReferences(string[] _names);

Usage Example

        private void SetFontNames(string fontNames)
        {
            string[] array;
            if (!this.m_GotFontNamesFromImporter)
            {
                array = new string[0];
            }
            else
            {
                array = fontNames.Split(new char[]
                {
                    ','
                });
                for (int i = 0; i < array.Length; i++)
                {
                    array[i] = array[i].Trim();
                }
            }
            this.m_FontNamesArraySize.intValue = array.Length;
            SerializedProperty serializedProperty = this.m_FontNamesArraySize.Copy();

            for (int j = 0; j < array.Length; j++)
            {
                serializedProperty.Next(false);
                serializedProperty.stringValue = array[j];
            }
            TrueTypeFontImporter trueTypeFontImporter = (TrueTypeFontImporter)base.target;

            this.m_FallbackFontReferences = trueTypeFontImporter.LookupFallbackFontReferences(array);
        }
All Usage Examples Of UnityEditor.TrueTypeFontImporter::LookupFallbackFontReferences