unity texture 计算大小

512 * 512大小的图片,选择RGB32(一个像素占用32位,4个字节,像素字节是4)
texture大小 = 512 * 512 * 4 / 1024 / 1024 = 1M
unity显示1.3M
在这里插入图片描述
仔细观察了一下,是因为勾选了MipMap
在这里插入图片描述
取消MipMap,显示内存只有1.0M了
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/u014481027/article/details/125391274