Version: 2021.3

SystemInfo.graphicsDeviceName

切换到手册
public static string graphicsDeviceName ;

描述

图形设备的名称(只读)。

此为用户显卡的名称,由图形驱动程序报告。

using UnityEngine;

public class Example : MonoBehaviour { void Start() { // Prints using the following format - "ATI Radeon X1600 OpenGL Engine" on MacBook Pro running Mac OS X 10.4.8 print(SystemInfo.graphicsDeviceName); } }

注意,根据操作系统、驱动程序等因素,同一块显卡可能会 报告为不同的名称。如果要可靠地识别某块特定的卡,请使用 SystemInfo.graphicsDeviceID SystemInfo.graphicsDeviceVendorID

另请参阅:SystemInfo.graphicsDeviceIDSystemInfo.graphicsDeviceVendorSystemInfo.graphicsDeviceVersion