Search Unity

How to Run unity with -force-opengl option

Discussion in 'Editor & General Support' started by bflynn11, Sep 20, 2017.

  1. bflynn11

    bflynn11

    Joined:
    Jul 20, 2017
    Posts:
    7
    Hi,

    Whenever I hit the play button on unity 64 bit 5.6.3f1 an error message pops up and says "Current graphics device type is Direct3D11, Run unity with -force-opengl option." Put simply and after some research, I don't know how to run unity with OpenGL. I'd appreciate it if someone could help me out here. Thanks a lot!

    Bryan
     
  2. eXonius

    eXonius

    Joined:
    Feb 2, 2016
    Posts:
    207
    Start "Run" or cmd.exe and type something like this:
    "C:\Program Files (x86)\Unity\Editor\Unity.exe" -force-opengl
     
  3. bflynn11

    bflynn11

    Joined:
    Jul 20, 2017
    Posts:
    7
    Hey there,

    Thanks so much for the quick reply but when I did what you said, it says it is not recognized as an internal or external command, operable program or batch file. Any ideas why it says this? Thanks.
     
    LyonGu likes this.
  4. eXonius

    eXonius

    Joined:
    Feb 2, 2016
    Posts:
    207
    How did you type it? The citation marks are supposed to be included.

    Also make sure the path is correct.
     
  5. bflynn11

    bflynn11

    Joined:
    Jul 20, 2017
    Posts:
    7
    I typed it with the citations and also tried without the citations. I checked the path and it is correct. This wasn't happening about a month or two ago. Thanks for your help.
     
  6. RandomiaGaming

    RandomiaGaming

    Joined:
    Apr 3, 2019
    Posts:
    12
    I have unity hub installed so typing this in launches the unity editor with opengl but then unity hub closes it and opens itself not in opengl so what should i do... Uninstall unity hub?
     
  7. Ahmad_Ayaz_Amin

    Ahmad_Ayaz_Amin

    Joined:
    Feb 8, 2019
    Posts:
    3
    Type it in the Unity shortcut (not Unity Hub).
     
  8. pocanman

    pocanman

    Joined:
    Dec 9, 2013
    Posts:
    1
    I was encountering the exact same issue. My solution is to edit the Target of the shortcut and add a -projectPath and -force-glcore parameter like this

    "C:\Program Files\Unity\Hub\Editor\2019.1.6f1\Editor\Unity.exe" -projectPath "C:\Your\Project\Folder" -force-glcore

    This will launch the project immediately and skip the Unity Hub
     
    chronoexp and jbartelt like this.
  9. Nothke

    Nothke

    Joined:
    Dec 2, 2012
    Posts:
    112
    Sorry for bumping the old post, but in case someone needs it, now it's easier with Unity Hub, Advanced Project Settings:

    upload_2020-3-18_22-24-59.png

    upload_2020-3-18_22-25-30.png
     
    Maccyfin, atomicjoe, _Prism_ and 9 others like this.
  10. techygamer5132

    techygamer5132

    Joined:
    Mar 23, 2020
    Posts:
    2
    thanks bro i have been struggling with this issue for quite some time good that you posted it
     
    _Prism_ and Vaupell like this.
  11. _Prism_

    _Prism_

    Joined:
    Jan 25, 2014
    Posts:
    11
    atomicjoe likes this.