Vital.sandbox
Texture

self:destroy

Client

Destroys the texture instance and frees its resources


Syntax

local status = self:destroy()

Parameters

TypeNameDescription

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Destroy a texture instance
local tex = texture.create("assets/sprite.png")

tex:destroy()

On this page