SystemInfo.graphicsDeviceVersion 显卡版本

static var graphicsDeviceVersion : string

Description描述

The graphics API version supported by the graphics device (Read Only).

该显卡所支持的图形API版本。(只读)

This is the low-level graphics API version supported by the user's graphics card.

这个是用户显卡所支持的底层图形API版本。

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.

如果是OpenGL API,返回字符串包含"OpenGL"然后是"major.minor"格式的版本号,在跟随的方括号中是完整的版本号。

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

如果是Direct3D9 API,返回的字符串包含"Direct3D 9.0c",在跟随的方括号中是驱动名称和版本号。

参见: SystemInfo.graphicsDeviceName, SystemInfo.graphicsDeviceVendor.

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		print(SystemInfo.graphicsDeviceVersion);
	}
}
// Prints "OpenGL 2.0 [2.0 ATI-1.4.40]" on MacBook Pro / OS X 10.4.8
// Prints "Direct3D 9.0c [atiumdag.dll 7.14.10.471]" on MacBook Pro / Windows Vista

print (SystemInfo.graphicsDeviceVersion);
Page last updated: 2011-3-18