I would like to invoke editor scripts in the running Unity Editor instance from the shell script running on the same dev machine (primarily Windows, but easy portability to OSX is preferred).
Do I understand right that Unity CLI will not help me much with that Unity - Manual: Command-line arguments ? I think it always opens fresh Unity Editor copy (and fails if I try to specify projectPath that is already open).
Are there any assets/built-in functionality that can help me get this up and running quickly, or I have to go into something like named pipes or TCP sockets?
Example scenarios:
- Run the game, when I click F5/Attach Debugger in VS Code. Stop the game, when I detach the debugger.
- “playscene sceneName” bat/sh file that will open the scene and Play it in the editor (without leaving my IDE).
Thanks!