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?
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 post good questions and use the site effectively we have posted a user 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.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
No one has followed this question yet.
Why does OPENGL use 4 to 8 times the vram compared to DirectX
Triangulate a polygon
How Resolution Independence is Working
Shader inconsistency between OpenGL and DirectX
Visually testing on Ubuntu Server?