//using System.IO;需要引用
public static void OutputRt(RenderTexture rt , int idx = 0)
{
RenderTexture.active = rt;
Texture2D png = new Texture2D(rt.width, rt.height, TextureFormat.ARGB32, false);
png.ReadPixels(new Rect(0, 0, rt.width, rt.height), 0, 0);
byte[] dataBytes = pn
UNITY存储图片到本地
最新推荐文章于 2024-08-19 19:55:55 发布