[Gfx2Texture]|[nil] texture = gfx2.loadImage(filepath)


Loads a texture from a file (can be used outside of render2)

Parameters


filepath

string

The path relative to the Scripts/Data folder

Return Value


texture

Gfx2Texture | nil

The loaded texture or nil