nanos world API Reference Unofficial documentation
Static function Server Fast

Assets.Precache

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

Syntax

Lua
Assets.Precache(asset_path, asset_type)

Parameters

Name Type Default Description
asset_path string The Asset Key
asset_type AssetType The Asset Type

Examples

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