self:destroy

Client

Destroys the image instance and frees its resources


Syntax

local status = self:destroy()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Destroy an image instance
local entity = core.image.create("assets/sprite.png")

entity:destroy()

On this page