self:get_type

Client

Returns the type name of the instance


Syntax

local result = self:get_type()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
string | boolresultType of the instance, or false if unavailable

Examples

Get the type of a font instance
local ft = font.create("fonts/Roboto-Regular.ttf")

engine.print("info", ft:get_type()) -- 'font'

On this page