Class ConnectRouter
The ConnectRouter allows you to register methods as routes for the ConnectServer.
This server can be accessed by external applications to communicate with the Unity Editor.
For example, the SuperBehaviour VSCode extension uses the ConnectServer to trigger compilation and other editor actions.
public static class ConnectRouter
- Inheritance
-
ConnectRouter
Methods
RegisterAssembly(Assembly)
Register an assembly to be searched for ConnectRoutes.
This method should best be called on editor startup.
ConnectRouter.RegisterAssembly(typeof(YourClass).Assembly);
public static void RegisterAssembly(Assembly assembly)
Parameters
assembly
AssemblyThe assembly to search for ConnectRoutes.