UnityEngine.Graphics.Blit C# (CSharp) Method

Blit() private method

private Blit ( Texture source, Material mat ) : void
source Texture
mat Material
return void
        public static void Blit(Texture source, Material mat)
        {
            int pass = -1;
            Blit(source, mat, pass);
        }

Same methods

Graphics::Blit ( Texture source, Material mat, [ pass ) : void
Graphics::Blit ( Texture source, RenderTexture dest ) : void
Graphics::Blit ( Texture source, RenderTexture dest, Material mat ) : void
Graphics::Blit ( Texture source, RenderTexture dest, Material mat, [ pass ) : void

Usage Example

コード例 #1
0
        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);
        }
All Usage Examples Of UnityEngine.Graphics::Blit