# Alpha8

> Alpha-only texture format, 8 bit integer.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
Alpha8 = 1
```

### Remarks

This format only stores the alpha channel and doesn't hold any color data. It can be used by custom shaders for computing alpha independently of the other channels. Set the texture data in the same way as with other textures, for example using [Texture2D.SetPixels](/engine/6000.0/script-reference/unityengine/texture2d/setpixels.md), except only the alpha component from [Color](/engine/6000.0/script-reference/unityengine/color.md) is used.

Additional Resources: [Texture2D](/engine/6000.0/script-reference/unityengine/texture2d.md), [texture assets](/engine/6000.0/manual/materials-and-shaders/textures/textures-getting-started/textures.md).
