# AlphaMode

> Options for alpha blending modes in QNX game windows.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.Windowing.QNX](/engine/6000.7/script-reference/unityengine/windowing/qnx.md)
* **Assembly:** UnityEngine.QNXWindowingModule

```csharp
public enum AlphaMode
```

## Remarks

Use this enum with [GameWindowExtensions.SetAlphaMode](/engine/6000.7/script-reference/unityengine/windowing/qnx/gamewindowextensions/setalphamode.md) to control how the QNX Screen windowing system blends the window with other surfaces during compositing.

## Examples

```csharp
using UnityEngine;
using UnityEngine.Windowing;
using UnityEngine.Windowing.QNX;

public class AlphaModeExample : MonoBehaviour
{
    void Start()
    {
        AlphaMode alphaMode = AlphaMode.PreMultipliedAlpha;
        AsyncOperation op = GameWindow.Main.SetAlphaMode(alphaMode);

        op.completed += _ => {
            Debug.Log($"Alpha mode set to {alphaMode} for {GameWindow.Main.GetTitle()}");
        };
    }
}
```

## Fields

| Value                                                                                                                 | Description                            |
| --------------------------------------------------------------------------------------------------------------------- | -------------------------------------- |
| [Default](/engine/6000.7/script-reference/unityengine/windowing/qnx/alphamode/default.md)                             | Use the default alpha blending mode.   |
| [NonPreMultipliedAlpha](/engine/6000.7/script-reference/unityengine/windowing/qnx/alphamode/nonpremultipliedalpha.md) | Use non-pre-multiplied alpha blending. |
| [PreMultipliedAlpha](/engine/6000.7/script-reference/unityengine/windowing/qnx/alphamode/premultipliedalpha.md)       | Use pre-multiplied alpha blending.     |
