Texture

Texture

class

Engine texture, anything a picture can be drawn from

  • read-only Assigning to the field raises an error.

Fields

NameTypeDescription
name read-only string Object name

Functions

Texture.find(name)

Find a loaded texture by name

name string Texture name

returns Texture2D

Texture.load(path)

Load a texture asset

path string Path to the object

returns Texture2D

Inherited from Object (3)

Subclasses

Used by