Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TextureImporterSwizzle

Options for where texture color channel data comes from in the TextureImporter.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Enum
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public enum TextureImporterSwizzle

Remarks

By default, the Texture Importer maps each color channel from the source image to the same color channel in the imported texture. For example, the default value of TextureImporter.swizzleR is TextureImporterSwizzle.R.

Fields

Value

Description

AUse the alpha color channel.
BUse the blue color channel.
GUse the green color channel.
OneUse white (a value of one) for the color channel.
OneMinusAUse the inverted alpha color channel.
OneMinusBUse the inverted blue color channel.
OneMinusGUse the inverted green color channel.
OneMinusRUse the inverted red color channel.
RUse the red color channel.
ZeroUse black (a value of zero) for the color channel.