private Blit ( |
||
source | ||
dest | ||
return | void |
public static extern void Blit(Texture source, RenderTexture dest);
/// <summary>
public void CacheAppIcon(string appKey, Texture2D tex, bool force = false) { RenderTexture rt = new RenderTexture(32, 32, 24, RenderTextureFormat.ARGB32); Graphics.Blit(tex, rt); Directory.CreateDirectory(iconCacheFolder); string path = Path.Combine(iconCacheFolder, appKey + ".png"); DumpRenderTexture(rt, path); }