# SetAlphaMode(GameWindow, AlphaMode)

> Sets the alpha blending mode for the specified window on QNX. This is an extension method for GameWindow.

## Definition

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

```csharp
public static AsyncOperation SetAlphaMode(this GameWindow window, AlphaMode alphaMode)
```

### Parameters

**** (\[GameWindow]\(/engine/6000.7/script-reference/unityengine/windowing/gamewindow)): The [GameWindow](/engine/6000.7/script-reference/unityengine/windowing/gamewindow.md) instance this extension method is implicitly called on.**** (\[AlphaMode]\(/engine/6000.7/script-reference/unityengine/windowing/qnx/alphamode)): The [AlphaMode](/engine/6000.7/script-reference/unityengine/windowing/qnx/alphamode.md) to set for the window.

### Returns

| Type                                                                            | Description                                                                                    |
| ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| [AsyncOperation](/engine/6000.7/script-reference/unityengine/asyncoperation.md) | An AsyncOperation that you can use to track the completion of the alpha mode update operation. |

### Remarks

Sets the alpha blending mode used by the QNX Screen windowing system for compositing the window with other surfaces.

**Notes**:

* This method is asynchronous and returns an `AsyncOperation` that you can use to track the completion of the operation.
* This method is available only on QNX platforms.

### Examples

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

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

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