言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

SystemInfo.graphicsDeviceVersion

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static var graphicsDeviceVersion: string;
public static string graphicsDeviceVersion;
public static graphicsDeviceVersion as string

Description

グラフィックデバイスがサポートしている、グラフィックスAPI のバージョン (Read Only)

This is the low-level graphics API version supported by the user's graphics card. 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. See Also: SystemInfo.graphicsDeviceName, SystemInfo.graphicsDeviceVendor.

	// 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);
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    void Example() {
        print(SystemInfo.graphicsDeviceVersion);
    }
}
import UnityEngine
import System.Collections

public class ExampleClass(MonoBehaviour):

	def Example() as void:
		print(SystemInfo.graphicsDeviceVersion)