# GetProcessState(int)

> Gets the ProcessState of a given instance of UnityEditor.

## Definition

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

```csharp
public static ProcessState GetProcessState(int pid)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The process ID.

### Returns

| Type                                                                            | Description                       |
| ------------------------------------------------------------------------------- | --------------------------------- |
| [ProcessState](/engine/6000.7/script-reference/unityeditor/mpe/processstate.md) | The state of the queried process. |
