Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Caching.CleanCache

static function CleanCache(): bool;
static bool CleanCache();
static def CleanCache() as bool

Returns

bool True when cache cleaning succeeded, false if cache was in use.

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.

if (GUILayout.Button("Uninstall Game"))
	Caching.CleanCache ();