中文
Appearance
Texture.graphicFormat
Texture
(只读)当前纹理的像素格式。
像素格式影响了纹理在内存中的占用空间和在 GPU 上的性能表现。不同的像素格式适用于不同的纹理用途,如颜色贴图、法线贴图、深度纹理等。详细介绍见GraphicsFormat。
GraphicsFormat
let texture = Resources.Load<Texture>(Texture, "textureId"); texture.graphicFormat;