addCustomTextureAsync
Starts an asynchronous texture download.
Syntax
lua
Ham.addCustomTextureAsync(textureName, textureUrl)Parameters
| Name | Type | Description |
|---|---|---|
textureName | string | Local filename to cache as |
textureUrl | string | URL to download the texture from |
Returns
integer- Request ID (use withgetAsyncTextureResult)
Example
lua
local requestId = Ham.addCustomTextureAsync("bigimage.png", "https://example.com/big.png")