SetWindowClass(GameWindow, string)
Sets the QNX Screen window class for the specified window.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Windowing.QNX
- Assembly: UnityEngine.QNXWindowingModule
public static AsyncOperation SetWindowClass(this GameWindow window, string windowClass)
Parameters
The GameWindow instance this extension method is implicitly called on.
The QNX Screen window class string. Must not be null or empty.
Returns
Type | Description |
|---|---|
| AsyncOperation | An AsyncOperation that you can use to track the completion of the window class update operation. |
Remarks
The QNX Screen window class string used to categorize and identify the window for Screen configuration and policy handling. Valid class names are system-defined and typically configured in the target device's graphics.conf. Throws an ArgumentException if the window class is null or empty.
Notes:
- This method is asynchronous and returns an that you can use to track the completion of the operation.
AsyncOperation - This method is available only on QNX platforms.
Examples
using UnityEngine;using UnityEngine.Windowing;using UnityEngine.Windowing.QNX;public class SetWindowClassExample : MonoBehaviour{ void Start() { AsyncOperation op = GameWindow.Main.SetWindowClass("unity"); op.completed += _ => { Debug.Log($"Window class set for {GameWindow.Main.GetTitle()}"); }; }}