Quantcast
Channel: Answers for "Bitmaps in unity"
Viewing all articles
Browse latest Browse all 11

Answer by normalmur

$
0
0
Texture2D cursor; byte[] bytes; cursor = new Texture2D(10, 10); bytes = cursor.GetRawTextureData(); //it is? string path = "C:/games/ii.png"; System.IO.File.WriteAllBytes(path, cursor.EncodeToPNG()); // EncodeToPNG return byte[]

Viewing all articles
Browse latest Browse all 11

Latest Images

Trending Articles



Latest Images