Object:type
EditReturns the name of the object's type as a string.
type = Object:type()
Arguments
None
Returns
Name | Type | Description |
type | string | The type of the object. |
Example
function isTexture(obj)
return type(obj) == 'userdata' and obj:type() == 'Texture'
end