Skip to content

Texture

The Texture library is used to store and reference texture resources.

It is mainly used to store UI textures used for Generic styles, via the Feature_GenericUITextures feature..

TextureLib_Texture Class

@field Name string Resource name.

@field GUID GUID

TextureLib Class

Inherits from Library.

Methods

GetTexture
function TextureLib.GetTexture(name)
   -> TextureLib_Texture

Returns a texture by name.

@param name string

RegisterTexture
function TextureLib.RegisterTexture(name, data)
   -> TextureLib_Texture

Registers a texture resource.

@param name string

@param data TextureLib_Texture `Name` is auto-initialized.