TextureImporter.isReadable 是否可读

var isReadable : bool

Description描述

Is texture data readable from scripts.

纹理数据从脚本是否可读?

Texture has to be set as "readable" in order for Texture2D.GetPixel, Texture2D.GetPixels and similar functions to work. Textures are not set as readable by default.

纹理必须设置为readable,为了使Texture2D.GetPixelTexture2D.GetPixels和类似函数工作。纹理默认未设置为readable。

When texture is not readable, it consumes much less memory, because a system-memory copy does not have to be kept around after texture is uploaded to the graphics API.

当纹理不是readable,它消耗更少的内存,因为系统内存拷贝不必保持围绕纹理之后上传到图像API。

Page last updated: 2011-5-26