Class for texture handling. Use this to create textures on the fly or to modify existing texture assets.
-
Sets pixel color at coordinates (x,y). //
设置坐标(x,y)处的像素颜色
-
Returns pixel color at coordinates (x, y). //
获取坐标(x,y)处的像素颜色
-
Returns filtered pixel color at normalized coordinates (u, v).
返回坐标(u,v)处的过滤化颜色
-
Set a block of pixel colors. //
设置一块像素的颜色
-
Set a block of pixel colors. // 设置一个像素颜色块。
-
Loads an image from a byte array. //
基于字节组信息载入图片
-
Get a block of pixel colors. //
获取一块像素颜色
-
Get a block of pixel colors in Color32 format
获取Color32格式的像素颜色块。
-
Actually apply all previous SetPixel and SetPixels changes.
实际应用前面的SetPixel和Setpixels的更改
-
Resizes the texture.
// 调整纹理的大小
-
Compress texture into DXT format. //
压缩纹理成为DXT格式
-
Packs multiple textures into a texture atlas.
打包多个纹理成为一个纹理集
-
Read screen pixels into the saved texture data.
读取屏幕像素信息并存储为纹理数据
-
Encodes this texture into PNG format. //
将此纹理编码为PNG格式