# SetPipelineId(GameWindow, int)

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

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Windowing.QNX](/engine/6000.7/script-reference/unityengine/windowing/qnx.md)
* **Assembly:** UnityEngine.QNXWindowingModule

```csharp
public static AsyncOperation SetPipelineId(this GameWindow window, int pipelineId)
```

### Parameters

**** (\[GameWindow]\(/engine/6000.7/script-reference/unityengine/windowing/gamewindow)): The [GameWindow](/engine/6000.7/script-reference/unityengine/windowing/gamewindow.md) instance this extension method is implicitly called on.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The QNX Screen pipeline ID. Must not be negative.

### Returns

| Type                                                                            | Description                                                                                     |
| ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| [AsyncOperation](/engine/6000.7/script-reference/unityengine/asyncoperation.md) | An AsyncOperation that can be used to track the completion of the pipeline ID update operation. |

### Remarks

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.

### Examples

```csharp
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()}");
        };
    }
}
```
