Options for alpha blending modes in QNX game windows.
This enum controls how the QNX Screen windowing system blends the window with other surfaces during compositing.
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()}"); }; } }
| Property | Description |
|---|---|
| Default | Use the default alpha blending mode. |
| NonPreMultipliedAlpha | Use non-pre-multiplied alpha blending. |
| PreMultipliedAlpha | Use pre-multiplied alpha blending. |