Search Unity

Command to open UnityEditor and Project directly

Discussion in 'Linux' started by bss_shashankk, Oct 22, 2019.

  1. bss_shashankk

    bss_shashankk

    Joined:
    May 8, 2018
    Posts:
    4
    Hi,

    Is there a command to open UnityProject with respective UnityEditor without opening UnityHub on linux?

    I tired running "./Unity projectpath" in installed Editor folder but it automatically opens UnityHub to choose the project.

    Thank you!
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,674
    Try this:

    Code (csharp):
    1. ./Unity -projectPath /path/to/project
     
  3. bss_shashankk

    bss_shashankk

    Joined:
    May 8, 2018
    Posts:
    4
    Great! That works, thank you so much!
     
  4. DomeCreator

    DomeCreator

    Joined:
    Mar 5, 2020
    Posts:
    29
    Hello I'm sorry being a noob on linux but I created a .sh file to open Unity project but I failed :)

    I tried like documentation said openning a project like this :
    Code (CSharp):
    1. /Applications/Unity/Hub/Editor/<version>/Unity.app/Contents/Linux/Unity -projectPath <project path>
    But it doesn't seems to worked, I saw that path to Unity looks like this :
    /home/user/Unity/Hub/Editor/2021.3.4f1/Editor/Unity

    So I tried this that doesn't work too:
    Code (CSharp):
    1. /home/user/Unity/Hub/Editor/2021.3.4f1/Editor/Unity -projectPath <projectpath>
    I'm quite lost, it's perfectly working on windows but with my ubuntu I can't find a way.
     
  5. ChiwTheNeko

    ChiwTheNeko

    Joined:
    Mar 24, 2022
    Posts:
    135
    This isn't the correct path. Unity editors are installed inside the Unity directory in your home directory.

    Code (CSharp):
    1. ./Unity/Hub/Editor/2021.3.26f1/Editor/Unity -projectPath ./Projects/MyProject
    That works.