Object:type

Edit

Returns the name of the object's type as a string.

type = Object:type()

Arguments

None

Returns

NameTypeDescription
typestring The type of the object.

Example

function isTexture(obj)
  return type(obj) == 'userdata' and obj:type() == 'Texture'
end

See also