Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Texture3D.SetPixels(Color[])

Parameters

colorsThe colors to set the pixels to.

Description

This function takes a color array and changes the pixel colors of the 3D texture.

Call Apply to actually upload the changed.

SetPixels(colors: Color[], miplevel: int = 0): void;
void SetPixels(Color[] colors, int miplevel = 0);
def SetPixels(colors as Color[], miplevel as int = 0) as void

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 color array and changes the pixel colors of the 3D texture. Call Apply to actually upload the changed.