Version: 2020.1
言語: 日本語
public void SetPixels (Color[] colors, int miplevel);

パラメーター

colors ピクセルに設定するカラー
miplevel 新規のカラーの反映先となるミップレベル

説明

3D テクスチャのピクセルカラーを設定します

This function takes a color array and changes the pixel colors of the 3D texture. Call Apply to actually upload the changed pixels to the GPU.

Note that using Color32 data with ::SetPixels32 function can be faster and consume less memory. The array of pixels is ordered x, y, z. With for-loops have x in the centre, y in the middle and z on the outside to create the array of pixels.

See Also: GetPixel, GetPixelBilinear, GetPixels, GetPixels32, SetPixel, SetPixels32, Apply functions.