Vital.sandbox
Texture

self:get_type

Client

Returns the type name of the instance


Syntax

local result = self:get_type()

Parameters

TypeNameDescription

Returns

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

Examples

Get the type of a texture instance
local tex = texture.create("assets/sprite.png")

engine.print("info", tex:get_type()) --'texture'

On this page