Title says it all, is the a simple way in code to check if Unity uses Direct X instead of Open GL (note that even on windows you can have unity run on Open GL, so just UNITY_STANDALONE_WIN isn't enough).
Thanks and happy new year!
Answer by Jaap Kreijkamp
Dec 31, 2010 at 07:32 AM
The most reliable way I can find is SystemInfo.graphicsDeviceVersion.StartsWith("Direct") is there a better way?
You can also use this:
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
1 Person is following this question.
Shader not working in OpenGL (Working in DirectX)
Why is Depth different in OpenGL?
runtime check for OpenGL
Export objects to a .3DS file at runtime
Editmode or Runtime