private static int CloseUIPrefab(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 2);
            PrefabLoader prefabLoader = (PrefabLoader)ToLua.CheckObject(L, 1, typeof(PrefabLoader));
            string       name         = ToLua.CheckString(L, 2);
            prefabLoader.CloseUIPrefab(name);
            result = 0;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }