GetVisibleChild() public method

Returns a visible child object with a certain name.
public GetVisibleChild ( string name ) : GObject
name string Name
return GObject
コード例 #1
0
 static int GetVisibleChild(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.GComponent obj = (FairyGUI.GComponent)ToLua.CheckObject(L, 1, typeof(FairyGUI.GComponent));
         string           arg0   = ToLua.CheckString(L, 2);
         FairyGUI.GObject o      = obj.GetVisibleChild(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }