| Parameter | Description |
|---|---|
| window | The GameWindow instance this extension method is implicitly called on. |
| alphaMode | The AlphaMode to set for the window. |
AsyncOperation An AsyncOperation that you can use to track the completion of the alpha mode update operation.
Sets the alpha blending mode for the specified window on QNX. This is an extension method for GameWindow.
Sets the alpha blending mode used by the QNX Screen windowing system for compositing the window with other surfaces.
Notes:
AsyncOperation that you can use to track the completion of the operation.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()}"); }; } }