GetChildInGroup() public méthode

Returns a child object belong to a group with a certain name.
public GetChildInGroup ( FairyGUI.GGroup group, string name ) : GObject
group FairyGUI.GGroup A group object
name string Name
Résultat GObject
 static int GetChildInGroup(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         FairyGUI.GComponent obj  = (FairyGUI.GComponent)ToLua.CheckObject(L, 1, typeof(FairyGUI.GComponent));
         FairyGUI.GGroup     arg0 = (FairyGUI.GGroup)ToLua.CheckObject(L, 2, typeof(FairyGUI.GGroup));
         string           arg1    = ToLua.CheckString(L, 3);
         FairyGUI.GObject o       = obj.GetChildInGroup(arg0, arg1);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #2
0
 static public int GetChildInGroup(IntPtr l)
 {
     try {
         FairyGUI.GComponent self = (FairyGUI.GComponent)checkSelf(l);
         FairyGUI.GGroup     a1;
         checkType(l, 2, out a1);
         System.String a2;
         checkType(l, 3, out a2);
         var ret = self.GetChildInGroup(a1, a2);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }