FairyGUI.GComponent.RemoveChildAt C# (CSharp) Method

RemoveChildAt() public method

Removes a child at a certain index. Children above the child will move down.
public RemoveChildAt ( int index ) : GObject
index int Index
return GObject
        public GObject RemoveChildAt(int index)
        {
            return RemoveChildAt(index, false);
        }

Same methods

GComponent::RemoveChildAt ( int index, bool dispose ) : GObject

Usage Example

    static int RemoveChildAt(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.GComponent), typeof(int)))
            {
                FairyGUI.GComponent obj = (FairyGUI.GComponent)ToLua.ToObject(L, 1);
                int arg0           = (int)LuaDLL.lua_tonumber(L, 2);
                FairyGUI.GObject o = obj.RemoveChildAt(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.GComponent), typeof(int), typeof(bool)))
            {
                FairyGUI.GComponent obj = (FairyGUI.GComponent)ToLua.ToObject(L, 1);
                int              arg0   = (int)LuaDLL.lua_tonumber(L, 2);
                bool             arg1   = LuaDLL.lua_toboolean(L, 3);
                FairyGUI.GObject o      = obj.RemoveChildAt(arg0, arg1);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.GComponent.RemoveChildAt"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
All Usage Examples Of FairyGUI.GComponent::RemoveChildAt