Caching.enabled Manual     Reference     Scripting  
Scripting > Runtime Classes > Caching
Caching.enabled

static var enabled : bool

Description

Is caching enabled?

The user has the option to completely disable caching in Unity, by right clicking on the content, and selecting "Setup...". If caching is disabled, all caching functions will fail, and you either have to load your content with the normal WWW class, or display an error and refuse to run. By default, caching is enabled.

if (!Caching.enabled)
GUILayout.Label ("Please turn on caching to run this game.");