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.

1 Answer

1

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][1] and [some old forum posts][2] 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. [1]: http://docs.unity3d.com/Documentation/Manual/CommandLineArguments.html [2]: http://forum.unity3d.com/threads/39306-force-opengl-in-editor-on-Windows

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 Mac) 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?

Or, for those using the 64-bit version in the default location: "C:\Program Files\Unity\Editor\Unity.exe" -force-opengl