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 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
1 Person is following this question.
Shader not working in OpenGL (Working in DirectX)
Editmode or Runtime
Why is Depth different in OpenGL?
runtime check for OpenGL
Visual Studio 2010 SP1 runtime library installation