Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione statica Server Veloce

Assets.Precache

Manually adds an Asset to be loaded during the Player's loading screen

Non ancora tradotto

Sintassi

Lua
Assets.Precache(asset_path, asset_type)

Parametri

Nome Tipo Predefinito Descrizione
asset_path string The Asset Key
asset_type AssetType The Asset Type

Esempi

Precaches a Static Mesh
Assets.Precache("my-asset-pack::SM_MyStaticMesh", AssetType.StaticMesh)