| window | The GameWindow instance this extension method is implicitly called on. |
| mode | 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:
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.
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()}"); }; } }