Texture
texture.create
Client
Creates a new texture instance from a file path
Syntax
local instance = texture.create(path)Parameters
| Type | Name | Description |
|---|---|---|
string | path | File path to the texture asset |
Returns
| Type | Name | Description |
|---|---|---|
texture | instance | Created texture instance |
Examples
local tex = texture.create("assets/sprite.png")