Skip to main content
api.utility.getAsset(assetType: string, name: string): any
Grab one asset Limerence has loaded, e.g. getAsset("image", "pencil").
assetType
string
required
Category, e.g. "image".
name
string
required
Key in that category, e.g. "pencil".
returns
any
Type depends on the category.
local tab = api.ui.tab("My Script", "pencil") -- the name, not the resolved asset
local img = api.utility.getAsset("image", "pencil")
getAssets