Search Unity

Unity Hub window visible when running in --headless mode

Discussion in 'Unity Hub' started by DrummerB, Jan 22, 2020.

  1. DrummerB

    DrummerB

    Joined:
    Dec 19, 2013
    Posts:
    135
    According to the Unity Hub release notes, there is a headless mode since version 2.1.

    However, starting the Hub with the --headless option still shows the window. This is impractical if you want to use the headless mode to install the necessary Unity version(s) from a build or bootstrap script. I tried running it from Cmd or Powershell with or without admin rights:

    Code (csharp):
    1. "Unity Hub.exe" -- --headless editors
    With Unity.exe, the -batchmode option completely hides all UI during a build.
     
    bjarkeck likes this.
  2. bjarkeck

    bjarkeck

    Joined:
    Oct 26, 2014
    Posts:
    301
    Same issue here.

    +1 for improvements to the CLI experience.
     
    RageAgainstThePixel and DrummerB like this.
  3. DrummerB

    DrummerB

    Joined:
    Dec 19, 2013
    Posts:
    135
    It seems that --headless indeed prevents the Unity Hub window opening, IF it's not already running (minimized to the task tray). If it's running in the background, --headless will still cause a window to open. I guess this not that big of an issue, since you can just not have Hub run by default on the headless build machine.