Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

GameWindowExtensions

class in UnityEngine.Windowing.QNX

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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

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.