x


Easy way to check if DirectX is used as renderer (instead of Open GL or Open GL ES)

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! Jaap

more ▼

asked Dec 31, 2010 at 07:17 AM

Jaap Kreijkamp gravatar image

Jaap Kreijkamp
7.1k 44 55 103

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

The most reliable way I can find is SystemInfo.graphicsDeviceVersion.StartsWith("Direct") is there a better way?

more ▼

answered Dec 31, 2010 at 07:32 AM

Jaap Kreijkamp gravatar image

Jaap Kreijkamp
7.1k 44 55 103

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x615
x164
x162
x52

asked: Dec 31, 2010 at 07:17 AM

Seen: 2049 times

Last Updated: Dec 31, 2010 at 07:17 AM