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 to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
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.
Visual Studio 2010 SP1 runtime library installation
runtime check for OpenGL
Triangulate a polygon
How to reassign buffer obtained from GetNativeIndexBufferPtr() from directX/opengl?
Dynamic batching not working with direct X?