# NewRequestId

> Creates a unique request ID for this ChannelClient in this instance of Unity. For more information about requests, see Request.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.MPE](/engine/6000.5/script-reference/unityeditor/mpe.md)
* **Assembly:** UnityEditor.CoreModule

## NewRequestId()

Creates a unique request ID for this [ChannelClient](/engine/6000.5/script-reference/unityeditor/mpe/channelclient.md) in this instance of Unity. For more information about requests, see Request.

```csharp
public int NewRequestId()
```

### Returns

| Type                                                       | Description     |
| ---------------------------------------------------------- | --------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The request ID. |

## NewRequestId(int)

Creates a unique request ID for this [ChannelClient](/engine/6000.5/script-reference/unityeditor/mpe/channelclient.md) in this instance of Unity. For more information about requests, see Request.

```csharp
public static int NewRequestId(int clientId)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The ChannelClient ID to generate the request from.

### Returns

| Type                                                       | Description     |
| ---------------------------------------------------------- | --------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The request ID. |
