- Home /
How to change OpenGL type per script
As you can see I have the question: How can I change the the Quality Level, means the OpenGl type per script. The problem is, that the shadows with OpenGL 2.0 looks bad, but OpenGL ES 3.0 isn't supported by many devices. And I don't want to publish two types of the .apk - one for OpenGL 2.0 and one for OpenGL ES 3.0. Is there any way to change it ingame?
Sorry for my bad english... :)
In later versions of Unity you can set the OpenGL Version to automatic detection.
What version are you using? I can't remember for sure, I think it's been around for a little while, but for sure in 5.4 it's in the Player Settings -> Other Settings (Edit -> Project Settings -> Player)
Just tick the Auto Graphics API box. That's what i meant.
I'm using Unity 5.4, but, if I set it to automatic, it never make the correct choice, for example, I have an iPhone 5s, this Device supports OpenGL3.0, but, If I use it in Automatic, I have problems with the lights on device, but, if I set it to ONLY OpenGL3, the lights works fine on device.
Sounds weird... But if this doesn't work I don't know anything else. :/ When toggling GL 2.0 only, is there the lights bug, too?
Well, In iOS iPhone 5s, if I use just OpenGL2, the problem happen, if I use only OpenGL3, the problem doesn't happen. (But, it make the game incompatible with a lot of Devices)
And in the Device Android $$anonymous$$oto G 2 ($$anonymous$$otorola) for example, if I use OpenGL3 or Automatic, the problem Happen, if I use OpenGL 2 only, the problem doesn't happen, anyway, a lot of devices have the same problem.
Strange... $$anonymous$$aybe it's a bug? I don't think I can help you any further. $$anonymous$$aybe someone else?
Answer by emergki · Sep 01, 2016 at 08:32 AM
I'm using Unity 5.4, but, if I set it to automatic, it never make the correct choice, for example, I have an iPhone 5s, this Device supports OpenGL3.0, but, If I use it in Automatic, I have problems with the lights on device, but, if I set it to ONLY OpenGL3, the lights works fine on device.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Application.OpenURL not working 1 Answer
Android plugin calling glTexSubImage2D etc 3 Answers
Resize GUI Button (linked to website) ?? 1 Answer
Button reaction time problem 1 Answer