- Home /
Forcing OpenGL in Windows Editor
I'm aware of the -force-opengl
command line argument for the Windows standalone player, but is there a way to force the Windows editor to use strictly OpenGL?
My company is targeting Linux platforms exclusively, and we'd like to have the editor's graphics device match to avoid any device dependent differences in rendering.
Answer by numberkruncher · Apr 29, 2013 at 11:01 PM
Yes this can be achieved on the Unity editor itself. Simply run the following path instead:
"C:\Program Files (x86)\Unity\Editor\Unity.exe" -force-opengl
Thanks! I guess that was obvious, but I was using this documentation and some old forum posts as a reference. The first makes no mention that the same argument can be used for the editor, and the forum posts were either outdated information from previous versions or just misinformed.
Is there a way to achieve this without passing the command-line parameter?
I'm not sure if there is, but what you can do is create a symbolic link on your desktop (aka desktop shortcut in Windows, symlinks on $$anonymous$$ac) and direct it to the unity.exe with the command line options you want. That way whenever you use the link to open unity it will always open in OpenGL mode.
In the documentation it says that OpenGL 2.1 is used. Is this true, or the documentation is old?
At this time of writing (December 2018), when using -force-opengl on Unity, it shows on the top ""
Or, for those using the 64-bit version in the default location:
"C:\Program Files\Unity\Editor\Unity.exe" -force-opengl
Your answer
Follow this Question
Related Questions
Is possible to force my game to run in a spesific OpenGL version? 0 Answers
Maximizing undocked game tab (Windows 10) 0 Answers
Overall quality became worse after changing to Windows from Mac 1 Answer
When I maximize the Unity editor, it's offset on the screen. (Windows 7) 1 Answer
PostprocessBuildPlayer script not functioning.. Will there be a fix? 2 Answers