The Variant type is not a real lua type, but instead indicates what lua values LÖVE can store internally. It is used in love.thread and love.event. Indeed, as it is a "virtual" type, it has no specific representation in lua, and no methods.


A Variant can be a flat table, a boolean, a string, a number or LÖVE userdata.


Foreign userdata (Lua's files, LuaSocket, ENet, ...), functions, and nested tables are not supported.

See Also

Other Languages