Handles the connection from the Editor to the Player.
Sets up events for connecting to and sending data to the Player.
This is a singleton class and can be accessed using EditorConnection.instance.
This can only be used in a class that inherits from MonoBehaviour, Object or ScriptableObject.
Set the "Autoconnect Profiler" in the Build Settings or build the Player through code with the BuildPipeline using build options: BuildOptions.ConnectToHost and BuildOptions.Development to initialize the connection.
The Player ID is used to tell multiple connected Players apart. By default, data is sent to all Players. A connected Player's ID is not guaranteed to be the same the next time it connects.
| ConnectedPlayers | A list of the connected players. | 
| Initialize | Initializes the EditorConnection. | 
| Register | Registers a callback on a certain message ID. | 
| RegisterConnection | Registers a callback, executed when a new Player connects to the Editor. | 
| RegisterDisconnection | Registers a callback on a Player when that Player disconnects. | 
| Send | Sends data to multiple or single Player(s). | 
| Unregister | Deregisters a registered callback. |