Provides extension methods for GameWindow specific to QNX platforms.
Use the methods in this class to configure QNX-specific window properties such as z-order, window class, pipeline ID, and alpha blending mode on an existing GameWindow instance. Each method is asynchronous and returns an AsyncOperation.
using UnityEngine; using UnityEngine.Windowing; using UnityEngine.Windowing.QNX;
public class QNXWindowExtensionsExample : MonoBehaviour { void Start() { GameWindow window = GameWindow.Main;
// Set the alpha mode to the main game window using the extension method AsyncOperation op1 = window.SetAlphaMode(AlphaMode.PreMultipliedAlpha); op1.completed += _ => { Debug.Log($"Alpha mode updated for {window.GetTitle()}"); }; // Set the z-order for the main game window using the extension method AsyncOperation op2 = window.SetZOrder(10); op2.completed += _ => { Debug.Log($"Z-order set for {window.GetTitle()}"); }; } }
| Method | Description |
|---|---|
| SetAlphaMode | Sets the alpha blending mode for the specified window on QNX. This is an extension method for GameWindow. |
| SetPipelineId | Sets the QNX Screen pipeline ID for the specified window. This is an extension method for GameWindow. |
| SetWindowClass | Sets the QNX Screen window class for the specified window. |
| SetZOrder | Sets the z-order for the specified window on QNX. This is an extension method for GameWindow. |