Function lotus_script::content::preload

source ·
pub fn preload(id: ContentId)
Expand description

Preload an asset like a texture you want to swap later or font you want to use. The asset will be loaded and kept in memory until the script gets unloaded.