Object:type
Gets the type of the object as a string.
Function
Synopsis
1 | type = Object:type() |
Arguments
None.
Returns
string type
- The type as a string.
Examples
Printing the type of an object
1 2 3 4 | image = love.graphics.newImage("test.png") print(image:type()) -- outputs: Image source = love.audio.newSource("test.ogg") print(source:type()) -- outputs: Source |
Please login to continue.