Static function
Fast
Assets.Precache
Manually adds an Asset to be loaded during the Player's loading screen
Syntax
Assets.Precache(asset_path, asset_type)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
asset_path
|
string | — | The Asset Key |
asset_type
|
AssetType | — | The Asset Type |
Examples
Assets.Precache("my-asset-pack::SM_MyStaticMesh", AssetType.StaticMesh)