Dota 2 Workshop Tools/Scripting/API/Global.PrecacheResource: Difference between revisions
< Dota 2 Workshop Tools | Scripting | API
Jump to navigation
Jump to search
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
||
Line 20: | Line 20: | ||
| string | | string | ||
| precacheMode | | precacheMode | ||
| Valid Modes: particle, | | Valid Modes: particle, particle_folder, model, model_folder, and soundfile | ||
|- | |- | ||
| string | | string | ||
| resource | | resource | ||
| | | Path to the specific resource, or a folder with the resources if folder is specified | ||
|- | |- | ||
| handle | | handle |
Revision as of 03:29, 6 September 2014

Function Description
void PrecacheResource(string precacheMode, string resource, handle context)
Manually precache a single resource
Parameters
Type | Name | Description |
---|---|---|
string | precacheMode | Valid Modes: particle, particle_folder, model, model_folder, and soundfile |
string | resource | Path to the specific resource, or a folder with the resources if folder is specified |
handle | context | No Description Set |