textures

The global instance of the TextureAPI
field signature:
textures
Method Property Fluent Description Representation
Field Type a TextureAPI

TextureAPI.get

Gets a registered texture based on its name, or nil if no texture was found with that name
overload 1:
textures:get(name)
Method Property Fluent Description Representation
name accepts a String
Return Value either a Texture or nil

TextureAPI.register

figura.docs.textures.register
overload 1:
textures:register(name, width, height)
Method Property Fluent Description Representation
name accepts a String
width accepts an Integer
height accepts an Integer
Return Value a Texture

TextureAPI.read

Reads a texture from a base64 string or a byte array
overload 1:
textures:read(name, data)
Method Property Fluent Description Representation
name accepts a String
data accepts a String
Return Value a Texture

TextureAPI.getTextures

Returns a table with all textures used by this avatar
Do not include generated textures from this API
overload 1:
textures:getTextures()
Method Property Fluent Description Representation
Return Value a table
a a