Version: 2021.1

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

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961