# ConnectWithProfiler

> Start the Player with a connection to the Profiler in the Editor.

## Definition

* **Type:** Field
* **Namespace:** [UnityEditor](/engine/6000.6/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
ConnectWithProfiler = 256
```

### Remarks

When the build starts, an open Profiler window automatically connects to the Player and starts profiling. When you build the Player by enabling the [BuildOptions.AutoRunPlayer](/engine/6000.6/script-reference/unityeditor/buildoptions/autorunplayer.md) option, the Editor automatically opens the Profiler window.

Additional Resources: [BuildPipeline.BuildPlayer](/engine/6000.6/script-reference/unityeditor/buildpipeline/buildplayer.md)
