AddBeforeMe() public method

Add another object before this object. 在显示列表中,将另一个对象插入到这个对象的前面。
public AddBeforeMe ( GObject target ) : void
target GObject Target object.
return void
 static public int AddBeforeMe(IntPtr l)
 {
     try {
         FairyGUI.GGraph  self = (FairyGUI.GGraph)checkSelf(l);
         FairyGUI.GObject a1;
         checkType(l, 2, out a1);
         self.AddBeforeMe(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Esempio n. 2
0
 static int AddBeforeMe(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.GGraph  obj  = (FairyGUI.GGraph)ToLua.CheckObject <FairyGUI.GGraph>(L, 1);
         FairyGUI.GObject arg0 = (FairyGUI.GObject)ToLua.CheckObject <FairyGUI.GObject>(L, 2);
         obj.AddBeforeMe(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }