SetVertical() 공개 메소드

Set the anchor's absolute coordinate relative to the specified parent, keeping the relative setting intact.
public SetVertical ( Transform parent, float localPos ) : void
parent Transform
localPos float
리턴 void
    static int SetVertical(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        UIRect.AnchorPoint obj  = (UIRect.AnchorPoint)LuaScriptMgr.GetNetObjectSelf(L, 1, "UIRect.AnchorPoint");
        Transform          arg0 = (Transform)LuaScriptMgr.GetUnityObject(L, 2, typeof(Transform));
        float arg1 = (float)LuaScriptMgr.GetNumber(L, 3);

        obj.SetVertical(arg0, arg1);
        return(0);
    }
예제 #2
0
 static public int SetVertical(IntPtr l)
 {
     try {
         UIRect.AnchorPoint    self = (UIRect.AnchorPoint)checkSelf(l);
         UnityEngine.Transform a1;
         checkType(l, 2, out a1);
         System.Single a2;
         checkType(l, 3, out a2);
         self.SetVertical(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }