GetSides() public method

Get the sides of the rectangle relative to the specified transform. The order is left, top, right, bottom.
public GetSides ( Transform relativeTo ) : Vector3[]
relativeTo Transform
return Vector3[]
Esempio n. 1
0
    static int GetSides(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        UILabel   obj  = (UILabel)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UILabel");
        Transform arg0 = (Transform)LuaScriptMgr.GetUnityObject(L, 2, typeof(Transform));

        Vector3[] o = obj.GetSides(arg0);
        LuaScriptMgr.PushArray(L, o);
        return(1);
    }
Esempio n. 2
0
 static public int GetSides(IntPtr l)
 {
     try {
         UILabel self = (UILabel)checkSelf(l);
         UnityEngine.Transform a1;
         checkType(l, 2, out a1);
         var ret = self.GetSides(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Esempio n. 3
0
	static int GetSides(IntPtr L)
	{
		try
		{
			ToLua.CheckArgsCount(L, 2);
			UILabel obj = (UILabel)ToLua.CheckObject<UILabel>(L, 1);
			UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckObject<UnityEngine.Transform>(L, 2);
			UnityEngine.Vector3[] o = obj.GetSides(arg0);
			ToLua.Push(L, o);
			return 1;
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
Esempio n. 4
0
    public static int GetSides(IntPtr l)
    {
        int result;

        try
        {
            UILabel   uILabel = (UILabel)LuaObject.checkSelf(l);
            Transform relativeTo;
            LuaObject.checkType <Transform>(l, 2, out relativeTo);
            Vector3[] sides = uILabel.GetSides(relativeTo);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, sides);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }