Equals() public method

public Equals ( TextGenerationSettings other ) : bool
other TextGenerationSettings
return bool
Example #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));
 }
 private TextGenerationError PopulateWithError(string str, TextGenerationSettings settings)
 {
     if ((!this.m_HasGenerated || (str != this.m_LastString)) || !settings.Equals(this.m_LastSettings))
     {
         this.m_LastValid = this.PopulateAlways(str, settings);
     }
     return(this.m_LastValid);
 }
Example #3
0
 private TextGenerationError PopulateWithError(string str, TextGenerationSettings settings)
 {
     if (m_HasGenerated && str == m_LastString && settings.Equals(m_LastSettings))
     {
         return(m_LastValid);
     }
     m_LastValid = PopulateAlways(str, settings);
     return(m_LastValid);
 }
        private TextGenerationError PopulateWithError(string str, TextGenerationSettings settings)
        {
            TextGenerationError lastValid;

            if (this.m_HasGenerated && str == this.m_LastString && settings.Equals(this.m_LastSettings))
            {
                lastValid = this.m_LastValid;
            }
            else
            {
                this.m_LastValid = this.PopulateAlways(str, settings);
                lastValid        = this.m_LastValid;
            }
            return(lastValid);
        }
Example #5
0
 static int Equals(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.TextGenerationSettings obj  = (UnityEngine.TextGenerationSettings)ToLua.ToObject(L, 1);
         UnityEngine.TextGenerationSettings arg0 = (UnityEngine.TextGenerationSettings)ToLua.CheckObject(L, 2, typeof(UnityEngine.TextGenerationSettings));
         bool o = obj.Equals(arg0);
         LuaDLL.lua_pushboolean(L, o);
         ToLua.SetBack(L, 1, obj);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #6
0
// properties

// methods

    static bool TextGenerationSettings_Equals__TextGenerationSettings(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 1)
        {
            UnityEngine.TextGenerationSettings arg0    = (UnityEngine.TextGenerationSettings)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
            UnityEngine.TextGenerationSettings argThis = (UnityEngine.TextGenerationSettings)vc.csObj;                JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(argThis.Equals(arg0)));
            JSMgr.changeJSObj(vc.jsObjID, argThis);
        }

        return(true);
    }
		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);
		}
 private TextGenerationError PopulateWithError(string str, TextGenerationSettings settings)
 {
     if ((!this.m_HasGenerated || (str != this.m_LastString)) || !settings.Equals(this.m_LastSettings))
     {
         this.m_LastValid = this.PopulateAlways(str, settings);
     }
     return this.m_LastValid;
 }