QNXGameWindowCreationSettings
QNX-specific settings for creating game windows.
Read time 2 minutesLast updated 9 days ago
Definition
- Type: Class
- Namespace: UnityEngine.Windowing.QNX
- Assembly: UnityEngine.QNXWindowingGatedModule
- Inherits from: GameWindowCreationSettings
public class QNXGameWindowCreationSettings : GameWindowCreationSettings
Remarks
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.
Examples
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()}"); }; }}
Constructors
Constructor | Description |
|---|---|
| QNXGameWindowCreationSettings(System.String,System.Int32,System.Int32,UnityEngine.Vector2Int,System.Int32,UnityEngine.DisplayInfo,UnityEngine.FullScreenMode,System.Boolean,UnityEngine.Windowing.TransparencyMode,System.Int32,System.String,System.Int32,UnityEngine.Windowing.QNX.AlphaMode) | Creates a new QNXGameWindowCreationSettings with the specified parameters including fullscreen mode. |
| QNXGameWindowCreationSettings(System.String,System.Int32,System.Int32,UnityEngine.Vector2Int,System.Int32,UnityEngine.DisplayInfo,UnityEngine.Windowing.TransparencyMode,System.Int32,System.String,System.Int32,UnityEngine.Windowing.QNX.AlphaMode) | Creates a new QNXGameWindowCreationSettings with the specified parameters in windowed mode. |
Properties
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. |