Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GameWindowExtensions

Provides extension methods for GameWindow specific to QNX platforms.
Read time 1 minuteLast updated 12 days ago

Definition

public static class GameWindowExtensions

Remarks

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
.

Examples

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()}"); }; }}

Static Methods

Method

Description

SetAlphaModeSets the alpha blending mode for the specified window on QNX. This is an extension method for GameWindow.
SetPipelineIdSets the QNX Screen pipeline ID for the specified window. This is an extension method for GameWindow.
SetWindowClassSets the QNX Screen window class for the specified window.
SetZOrderSets the z-order for the specified window on QNX. This is an extension method for GameWindow.