| Parameter | Description |
|---|---|
| window | The GameWindow instance this extension method is implicitly called on. |
| windowClass | The QNX Screen window class string. Must not be null or empty. |
AsyncOperation An AsyncOperation that you can use to track the completion of the window class update operation.
Sets the QNX Screen window class for the specified window.
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:
AsyncOperation that you can use to track the completion of the operation.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()}"); }; } }