# graphicsDeviceVersion

> The graphics API type and driver version used by the graphics device (Read Only).

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static string graphicsDeviceVersion { get; }
```

### Remarks

Returns a string identifying low-level graphics API kind and driver version. In most cases when you need to detect which graphics API is being used it is much easier to use [SystemInfo.graphicsDeviceType](/engine/6000.0/script-reference/unityengine/systeminfo/graphicsdevicetype.md).

In case of OpenGL API, the returned string will contain "`OpenGL`" followed by version in "`major.minor`" format, followed by full version string in square brackets.

In case of Direct3D9 API, the returned string will contain "`Direct3D 9.0c`" followed by driver name and version in square brackets.

In case of Direct3D11 API, the returned string will contain "`Direct3D 11.0`" followed by feature level in square brackets.

Additional Resources: [SystemInfo.graphicsDeviceType](/engine/6000.0/script-reference/unityengine/systeminfo/graphicsdevicetype.md), [SystemInfo.graphicsDeviceName](/engine/6000.0/script-reference/unityengine/systeminfo/graphicsdevicename.md), [SystemInfo.graphicsDeviceVendor](/engine/6000.0/script-reference/unityengine/systeminfo/graphicsdevicevendor.md).

### Examples

```csharp
using UnityEngine;
public class ExampleClass : MonoBehaviour
{
    void Start()
    {
        // Prints "OpenGL 2.0 [2.0 ATI-1.4.40]" on MacBook Pro running Mac OS X 10.4.8
        // Prints "Direct3D 9.0c [atiumdag.dll 7.14.10.471]" on MacBook Pro running Windows Vista
        print(SystemInfo.graphicsDeviceVersion);
    }
}
```
