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.
Additional Resources: TextureImporter.swizzleR, TextureImporter.swizzleG, TextureImporter.swizzleB, TextureImporter.swizzleA.
Fields
Value | Description |
|---|---|
| A | Use the alpha color channel. |
| B | Use the blue color channel. |
| G | Use the green color channel. |
| One | Use white (a value of one) for the color channel. |
| OneMinusA | Use the inverted alpha color channel. |
| OneMinusB | Use the inverted blue color channel. |
| OneMinusG | Use the inverted green color channel. |
| OneMinusR | Use the inverted red color channel. |
| R | Use the red color channel. |
| Zero | Use black (a value of zero) for the color channel. |