class in UnityEngine.Windowing.QNX
/
Inherits from:Windowing.GameWindowCreationSettings
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, displayInfo: displayInfos[0], 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()}"); }; } }
| Property | Description |
|---|---|
| alphaMode | The alpha blending mode for the window. |
| pipelineId | The QNX Screen pipeline ID for the window. |
| transparencyMode | The transparency mode of the window. |
| windowClass | The QNX Screen window class string for the window. |
| zOrder | The z-order of the window. |
| Constructor | Description |
|---|---|
| QNXGameWindowCreationSettings | Creates a new QNXGameWindowCreationSettings with the specified parameters including fullscreen mode. |
| Property | Description |
|---|---|
| cameraDisplayIndex | The display index that the camera should render to. |
| displayInfo | Information about the display where the window will be created. |
| fullScreenMode | The fullscreen mode for the window. |
| height | The height of the window in pixels. |
| position | The position of the window relative to the top-left corner of the display. |
| resizable | Determines whether the window can be resized by the user. |
| title | The title text displayed in the window's title bar. |
| width | The width of the window in pixels. |