UnityEngine.TextGenerationSettings.Equals C# (CSharp) Method

Equals() public method

public Equals ( TextGenerationSettings other ) : bool
other TextGenerationSettings
return bool
        public bool Equals(TextGenerationSettings other)
        {
            return ((((((this.CompareColors(this.color, other.color) && (this.fontSize == other.fontSize)) && (Mathf.Approximately(this.scaleFactor, other.scaleFactor) && (this.resizeTextMinSize == other.resizeTextMinSize))) && (((this.resizeTextMaxSize == other.resizeTextMaxSize) && Mathf.Approximately(this.lineSpacing, other.lineSpacing)) && ((this.fontStyle == other.fontStyle) && (this.richText == other.richText)))) && ((((this.textAnchor == other.textAnchor) && (this.alignByGeometry == other.alignByGeometry)) && ((this.resizeTextForBestFit == other.resizeTextForBestFit) && (this.resizeTextMinSize == other.resizeTextMinSize))) && (((this.resizeTextMaxSize == other.resizeTextMaxSize) && (this.resizeTextForBestFit == other.resizeTextForBestFit)) && ((this.updateBounds == other.updateBounds) && (this.horizontalOverflow == other.horizontalOverflow))))) && (((this.verticalOverflow == other.verticalOverflow) && this.CompareVector2(this.generationExtents, other.generationExtents)) && this.CompareVector2(this.pivot, other.pivot))) && (this.font == other.font));
        }
    }

Usage Example

Esempio n. 1
0
 /// <summary>
 ///   <para>Will generate the vertices and other data for the given string with the given settings.</para>
 /// </summary>
 /// <param name="str">String to generate.</param>
 /// <param name="settings">Settings.</param>
 public bool Populate(string str, TextGenerationSettings settings)
 {
     if (this.m_HasGenerated && str == this.m_LastString && settings.Equals(this.m_LastSettings))
     {
         return(this.m_LastValid);
     }
     return(this.PopulateAlways(str, settings));
 }
All Usage Examples Of UnityEngine.TextGenerationSettings::Equals