Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Texture3D.SetPixels32

Switch to Manual
public void SetPixels32(Color32[] colors, int miplevel = 0);

Parameters

colorsThe colors to set the pixels to.
miplevelThe mipmap level to be affected by the new colors.

Description

Sets pixel colors of a 3D texture.

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

See Also: GetPixels32, SetPixels, Apply.

Did you find this page useful? Please give it a rating: