Version: 1.10
LanguageEnglish
  • C#

QNXGameWindowCreationSettings

class in UnityEngine.Windowing.QNX

/

Inherits from:Windowing.GameWindowCreationSettings

/

Implemented in:UnityEngine.CoreModule

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

QNX-specific settings for creating game windows.

Extends GameWindowCreationSettings with QNX-specific options including transparency mode, z-order, pipeline ID, alpha blending mode, and window class support for QNX Screen integration.

Additional resources: GameWindowCreationSettings, GameWindowManager, AlphaMode, TransparencyMode, GameWindowExtensions.

using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Windowing;
using UnityEngine.Windowing.QNX;

public class QNXCreateWindowExample : MonoBehaviour { List<DisplayInfo> displayInfos = new List<DisplayInfo>();

void Start() { DisplayInfo.GetLayout(displayInfos);

QNXGameWindowCreationSettings settings = new QNXGameWindowCreationSettings( title: "Second Window", width: 600, height: 400, position: new Vector2Int(0, 0), cameraDisplayIndex: 1, fullScreenMode: FullScreenMode.Windowed, resizable: false, transparencyMode: TransparencyMode.Transparent, zOrder: 1, windowClass: "unity", pipelineId: 0, alphaMode: AlphaMode.PreMultipliedAlpha );

CreateWindowAsyncOperation op = GameWindowManager.Create(settings);

op.completed += (AsyncOperation o) => { Debug.Log($"Window Created: {op.window.GetTitle()}"); }; } }

Properties

alphaModeThe alpha blending mode for the window.
pipelineIdThe QNX Screen pipeline ID for the window.
transparencyModeThe transparency mode of the window.
windowClassThe QNX Screen window class string for the window.
zOrderThe z-order of the window.

Inherited Members

Properties

cameraDisplayIndexThe display index that the camera should render to.This value determines which display the camera associated with this window will target for rendering.
fullScreenModeThe fullscreen mode for the window.Specifies whether the window should be created in windowed, fullscreen, or borderless fullscreen mode. See FullScreenMode for available options.
heightThe height of the window in pixels.
positionThe position of the window relative to the top-left corner of the display.Specified as a Vector2Int with x and y coordinates in pixels.
resizableDetermines whether the window can be resized by the user.When set to true, the window will have resizing handles. When false, the window size is fixed.
titleThe title text displayed in the window's title bar.
widthGameWindowCreationSettings.width.