UIFont.UsesSprite C# (CSharp) Méthode

UsesSprite() public méthode

Whether the specified sprite is being used by the font.
public UsesSprite ( string s ) : bool
s string
Résultat bool
    public bool UsesSprite(string s)
    {
        if (!string.IsNullOrEmpty(s))
        {
            if (s.Equals(spriteName))
                return true;

            for (int i = 0, imax = symbols.Count; i < imax; ++i)
            {
                BMSymbol sym = symbols[i];
                if (s.Equals(sym.spriteName))
                    return true;
            }
        }
        return false;
    }