ドキュメント

Unity Engine

Unity Engine

ClearCache

Removes all cached content in the cache that has been cached by the current application.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

ClearCache()

Removes all cached content in the cache that has been cached by the current application.
public bool ClearCache()

Returns

Type

Description

boolReturns True when cache clearing succeeded.

Remarks

Returns false if any cached bundle is in use.

ClearCache(int)

Removes all cached content in the cache that has been cached by the current application.
public bool ClearCache(int expiration)

Parameters

expiration

The number of seconds that AssetBundles may remain unused in the cache.

Returns

Type

Description

boolReturns True when cache clearing succeeded.

Remarks

Returns false if any cached bundle is in use.