文档

Unity Engine

Unity Engine

graphicsDeviceID

The identifier code of the graphics device (Read Only).
阅读时间1 分钟最后更新于 3 小时前

Definition

public static int graphicsDeviceID { get; }

Remarks

This is the PCI device ID of the user's graphics card. Together with SystemInfo.graphicsDeviceVendorID, this number uniquely identifies a particular graphics card model. The number is the same across operating systems and driver versions.
Note that device IDs are only implemented on PC (Windows/Mac/Linux) platforms and on Android when running Vulkan; on other platforms you'll have to do name-based detection if needed.
See pci-ids.ucw.cz for a list of device IDs.