- Home /
Missing UI material in windows OpenGL standalone
Hello all,
I posted this question in the forum as well but didn't get an answer. I am working on a project where shaders are written for OpenGL. So, on Windows, we have to launch Unity editor with -force-opengl option. This works perfectly.
But on compiled standalone, when i launch the app with -force-opengl, the UI is pink : its material is missing. In the Edit > Project settings > Graphics > "Always include shaders" options, there are "UI/Default" and "UI/Default Font".
What did i miss ?
Thank you, Olivier
Comment
Found ! You need to uncheck Player Settings > Other Settings > Automatic Graphics API. Then in the list add OpenGL2 in 1st position (and remove DirectX if needed).