# ConnectToHost

> Sets the Player to connect to the Editor.

## Definition

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

```csharp
ConnectToHost = 4096
```

### Remarks

Sets the Player to connect to the Editor and it requires [BuildOptions.Development](/engine/6000.7/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.7/script-reference/unityeditor/buildpipeline/buildplayer.md)
