# ConnectToHost

> Sets the Player to connect to the Editor.

## Definition

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

```csharp
ConnectToHost = 4096
```

### Remarks

Sets the Player to connect to the Editor and it requires [BuildOptions.Development](/engine/6000.0/script-reference/unityeditor/buildoptions/development.md) to be set. Please note that you should only use this in development. Additional Resources: [BuildPipeline.BuildPlayer](/engine/6000.0/script-reference/unityeditor/buildpipeline/buildplayer.md).
