Manual     Reference     Scripting  
  
Scripting > Runtime Classes > Caching   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Attributes
  • Enumerations
  • History
  • Index
  • Caching
  • All Members
  • Class Variables
  • enabled
  • expirationDelay
  • maximumAvailableDiskSpace
  • ready
  • spaceFree
  • spaceOccupied
  • Class Functions
  • Authorize
  • CleanCache
  • IsVersionCached
  • MarkAsUsed
  • ResetNoBackupFlag
  • SetNoBackupFlag

Caching.enabled  

static var enabled : boolean

Description

Is Caching enabled?

WebPlayer users may disable Caching for all WebPlayer applications by right-clicking on the WebPlayer content, selecting "Setup...", and checking the 'Disable all caching' checkbox. If caching is disabled, WWW.LoadFromCacheOrDownload() will continue to function, but will never cache downloaded AssetBundles. Caching is always enabled for PC/Mac Standalone and iOS/Android player builds.

if (!Caching.enabled)
GUILayout.Label ("Please enable Caching for the best gameplay experience.");