Search Unity

Can't open a project through command line if installed with Hub

Discussion in 'Unity Hub' started by MagicDesignStudios, Mar 6, 2019.

  1. MagicDesignStudios

    MagicDesignStudios

    Joined:
    Dec 22, 2016
    Posts:
    37
    I use unity in a CI setup, where I grab unity's install path to open projects.
    When trying out a new install done with Unity Hub, I can't open the projects from command line.
    The following :
    Code (CSharp):
    1. "C:\Program Files\Unity\Hub\Editor\2017.4.10f1\Editor\Unity.exe" -projectPath "E:HubTest\New Unity Project"
    Starts to open the unity project, but then the following window pop up :
    upload_2019-3-6_10-13-35.png

    Whatever the button clicked, it's not doing anything.
     
  2. Deleted User

    Deleted User

    Guest

    This seems to be a problem with your project. I just tried a similar command (paths are different, of course) and managed opening an existing project without any error message. Since it seems to be a layout problem, try deleting the "C:\Users\Username\AppData\Roaming\Unity\Editor-5.x\Preferences\Layouts" and try the command again. :)

    The stranger thing that happened when I use that command line is that I had to log into my account although I was already logged in, but it might be due to the fact that, when you use a command line, the Hub doesn't launch, it just opens the project.