static int OnDrag(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 2);
     UnityEngine.UI.ScrollRect obj = (UnityEngine.UI.ScrollRect)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.UI.ScrollRect");
     UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)LuaScriptMgr.GetNetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
     obj.OnDrag(arg0);
     return(0);
 }
 static int OnDrag(IntPtr L)
 {
     L.ChkArgsCount(2);
     UnityEngine.UI.ScrollRect obj = (UnityEngine.UI.ScrollRect)L.ChkUnityObjectSelf(1, "UnityEngine.UI.ScrollRect");
     UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)L.ChkUserData(2, typeof(UnityEngine.EventSystems.PointerEventData));
     obj.OnDrag(arg0);
     return(0);
 }
Example #3
0
 public override void OnDrag(PointerEventData eventData)
 {
     if (drag)
     {
         base.OnDrag(eventData);
     }
     else
     {
         scroll.OnDrag(eventData);
     }
 }
Example #4
0
 public override void OnDrag(PointerEventData eventData)
 {
     if (m_IsDistaching)
     {
         m_Parent.OnDrag(eventData);
     }
     else
     {
         base.OnDrag(eventData);
     }
 }
Example #5
0
 public void OnDrag(PointerEventData eventData)
 {
     if (drag)
     {
         OnDrag(eventData.delta);
     }
     else
     {
         scroll.OnDrag(eventData);
     }
 }
Example #6
0
 static public int OnDrag(IntPtr l)
 {
     try {
         UnityEngine.UI.ScrollRect self = (UnityEngine.UI.ScrollRect)checkSelf(l);
         UnityEngine.EventSystems.PointerEventData a1;
         checkType(l, 2, out a1);
         self.OnDrag(a1);
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int QPYX_OnDrag_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 2);
         UnityEngine.UI.ScrollRect QPYX_obj_YXQP = (UnityEngine.UI.ScrollRect)ToLua.CheckObject <UnityEngine.UI.ScrollRect>(L_YXQP, 1);
         UnityEngine.EventSystems.PointerEventData QPYX_arg0_YXQP = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject <UnityEngine.EventSystems.PointerEventData>(L_YXQP, 2);
         QPYX_obj_YXQP.OnDrag(QPYX_arg0_YXQP);
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
 static int OnDrag(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.UI.ScrollRect obj = (UnityEngine.UI.ScrollRect)ToLua.CheckObject <UnityEngine.UI.ScrollRect>(L, 1);
         UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject <UnityEngine.EventSystems.PointerEventData>(L, 2);
         obj.OnDrag(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }