Display

self:get_type

Client

Retrieves the type of the instance

Syntax

local type = self:get_type()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
stringtypeType name of the instance

Examples

Get the type of a display instance
local entity = core.display.get_texture()

core.engine.print("info", entity:get_type()) -- "core.display"

On this page