private static void ClearCachedAssetPreviews(string[] assetPaths)
 {
     foreach (string assetPath in assetPaths)
     {
         string guid = AssetDatabase.AssetPathToGUID(assetPath);
         AssetPreviewCache.ClearCachedAssetPreviewFile(guid);
     }
 }
Exemple #2
0
 /// <summary>
 /// Refresh preview image for brush.
 /// </summary>
 /// <param name="brush">The brush.</param>
 public static void RefreshPreview(Brush brush)
 {
     AssetPreviewCache.ClearCachedAssetPreviewFile(brush);
 }