public CalculateLayoutInputVertical ( ) : void | ||
Результат | void |
static int CalculateLayoutInputVertical(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); UnityEngine.UI.Text obj = (UnityEngine.UI.Text)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.UI.Text"); obj.CalculateLayoutInputVertical(); return(0); }
static int CalculateLayoutInputVertical(IntPtr L) { L.ChkArgsCount(1); UnityEngine.UI.Text obj = (UnityEngine.UI.Text)L.ChkUnityObjectSelf(1, "UnityEngine.UI.Text"); obj.CalculateLayoutInputVertical(); return(0); }
static public int CalculateLayoutInputVertical(IntPtr l) { try { UnityEngine.UI.Text self = (UnityEngine.UI.Text)checkSelf(l); self.CalculateLayoutInputVertical(); return(0); } catch (Exception e) { return(error(l, e)); } }
static int QPYX_CalculateLayoutInputVertical_YXQP(IntPtr L_YXQP) { try { ToLua.CheckArgsCount(L_YXQP, 1); UnityEngine.UI.Text QPYX_obj_YXQP = (UnityEngine.UI.Text)ToLua.CheckObject <UnityEngine.UI.Text>(L_YXQP, 1); QPYX_obj_YXQP.CalculateLayoutInputVertical(); return(0); } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static int CalculateLayoutInputVertical(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.UI.Text obj = (UnityEngine.UI.Text)ToLua.CheckObject(L, 1, typeof(UnityEngine.UI.Text)); obj.CalculateLayoutInputVertical(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public static int CalculateLayoutInputVertical_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); UnityEngine.UI.Text obj = get_obj(nThisPtr); obj.CalculateLayoutInputVertical(); } catch (Exception e) { Debug.LogException(e); } return(0); }
static int CalculateLayoutInputVertical(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("UnityEngine.UI.Text.CalculateLayoutInputVertical"); #endif try { ToLua.CheckArgsCount(L, 1); UnityEngine.UI.Text obj = (UnityEngine.UI.Text)ToLua.CheckObject <UnityEngine.UI.Text>(L, 1); obj.CalculateLayoutInputVertical(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public void SetSize() { float upper = 0; thisRect = gameObject.GetComponent <RectTransform>(); thisText = gameObject.GetComponent <UnityEngine.UI.Text>(); string text = thisText.text; char[] array = new char[text.ToCharArray().Length]; array = text.ToCharArray(); //for (int i = 0; i < array.Length; i++) //{ thisText.CalculateLayoutInputVertical(); upper = thisText.preferredHeight; Debug.Log(upper); //} thisRect.sizeDelta = new Vector2(thisRect.sizeDelta.x, upper); }