Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

GameWindowExtensions.SetPipelineId

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

Declaration

public static AsyncOperation SetPipelineId(GameWindow window, int pipelineId);

Parameters

Parameter Description
window The GameWindow instance this extension method is implicitly called on.
pipelineId The QNX Screen pipeline ID. Must not be negative.

Returns

AsyncOperation An AsyncOperation that can be used to track the completion of the pipeline ID update operation.

Description

Sets the QNX Screen pipeline ID for the specified window. This is an extension method for GameWindow.

In the QNX Screen windowing system, this value maps the window to a specific display pipeline (hardware composition path/plane). This value determines how the window is composed and rendered on the target display. Throws an ArgumentException if the pipeline ID is negative.

Notes:

  • This method is asynchronous and returns an AsyncOperation that you can use to track the completion of the operation.
  • This method is available only on QNX platforms.
using UnityEngine;
using UnityEngine.Windowing;
using UnityEngine.Windowing.QNX;

public class SetPipelineIdExample : MonoBehaviour { void Start() { AsyncOperation op = GameWindow.Main.SetPipelineId(0);

op.completed += _ => { Debug.Log($"Pipeline ID set for {GameWindow.Main.GetTitle()}"); }; } }