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
| Type | Name | Description |
|---|---|---|
string | bool | result | Type of the instance, or false if unavailable |
Examples
local tex = texture.create("assets/sprite.png")
engine.print("info", tex:get_type()) -- 'texture'