您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
479 B

using UnityEngine;
using UnityEditor;
#if UNITY_EDITOR
// Based on this script by kimsama: https://gist.github.com/kimsama/5530104
public class CacheTools : ScriptableObject
{
[MenuItem("Tools/Cache/Clean Cache")]
public static void CleanCache()
{
if (Caching.ClearCache())
{
Debug.LogWarning("Successfully cleaned all caches.");
}
else
{
Debug.LogWarning("Cache was in use.");
}
}
}
#endif