Lua API
On this page

ManagedTexture

Inherits from

Holds a texture (from a bitmap), maybe other things later... Using this class will automatically recreate the texture as needed.

Fields:

TexturePtr number

read only

Pointer to the unmanaged texture

Constructors:

New(file: string) :

Create a new managed texture from a bitmap file path.

Parameters:
NameTypeDefaultSummary
filestring

The bitmap file path for the texture.

Methods:

Dispose() : nil

Release this texture

Returns:nil

GetPropertyKeys() : string[]

Returns a list of strings of all public property / field names. Useful for reflection on UserData in lua scripts

Returns:string[]

ToString() : string

Returns a string that represents the current object.

Returns:string