Vital.sandbox
Texture

texture.create

Client

Creates a new texture instance from a file path


Syntax

local instance = texture.create(path)

Parameters

TypeNameDescription
stringpathFile path to the texture asset

Returns

TypeNameDescription
textureinstanceCreated texture instance

Examples

Create a texture instance from a file
local tex = texture.create("assets/sprite.png")

On this page