# ConnectionTarget

> The type of the connected target.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.Networking.PlayerConnection](/engine/6000.5/script-reference/unityengine/networking/playerconnection.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public enum ConnectionTarget
```

## Remarks

Used in [IConnectionState](/engine/6000.5/script-reference/unityengine/networking/playerconnection/iconnectionstate.md). For example, this is used to signify whether the Editor is connected to a Player, or to an Editor. When the Editor is connected to another Editor or itself, it also picks up the PlayMode Player. If the Editor is not connected to a Player, it always falls back onto a connection to itself. Therefore, [ConnectionTarget.None](/engine/6000.5/script-reference/unityengine/networking/playerconnection/connectiontarget/none.md) is only applicable in a Player.

## Fields

| Value                                                                                                        | Description                                                |
| ------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------- |
| [Editor](/engine/6000.5/script-reference/unityengine/networking/playerconnection/connectiontarget/editor.md) | The connected target is an Editor.                         |
| [None](/engine/6000.5/script-reference/unityengine/networking/playerconnection/connectiontarget/none.md)     | No target is connected, this is only possible in a Player. |
| [Player](/engine/6000.5/script-reference/unityengine/networking/playerconnection/connectiontarget/player.md) | The connected target is a Player.                          |
