I created a very simple console application:
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
// The project I want to open
var arg = @"""-projectPath C:\Users\Administrator\Downloads\New Unity Project""";
// Start Unity and open the project
Process.Start(@"C:\Program Files\Unity\Editor\Unity.exe", arg);
}
}
}
But only the Unity Editor is launched; the specified project is not opened.
What do I need to modify to launch the project?
@"\"-projectPath C:\Users\Administrator\Downloads\New Unity Project\""? \$\endgroup\$