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.CleanCache  

static function CleanCache () : boolean

Returns

boolean - True when cache cleaning succeeded, false if cache was in use. * if (GUILayout.Button("Uninstall Game")) * Caching.CleanCache ();

Description

Delete all AssetBundle content that has been cached by the current application.

This function is not available to WebPlayer applications that use the shared cache.