Search Unity

Running unity without rendering graphics (headless mode) on linux

Discussion in 'Linux' started by gargd, Sep 13, 2018.

  1. gargd

    gargd

    Joined:
    Apr 15, 2017
    Posts:
    3
    Hi, I've been trying to run unity in headless mode on linux. There is a headless mode option in build settings in linux, which I have already ticked but still when I turn the play mode on, the graphics are rendered as they do without headless mode being ticked.
     
  2. AurimasBlazulionis

    AurimasBlazulionis

    Joined:
    Aug 13, 2013
    Posts:
    209
    That setting is for the builds, and not the editor.
     
  3. gargd

    gargd

    Joined:
    Apr 15, 2017
    Posts:
    3
    Then how do I run unity without rendering the graphics?
     
  4. Joseph-Ferano

    Joseph-Ferano

    Joined:
    Jul 18, 2008
    Posts:
    165
  5. MikeWise

    MikeWise

    Joined:
    Dec 27, 2017
    Posts:
    14
    I am using "unityprogram -nographics -batchmode". Oddly in Windows it kind of works, but still brings up a window without the close/minimize controls which is a bit annoying.
    You need it on Linux in Azure on the DSVM if you want to run on a non-GPU (and much cheaper) VM.