I want to know by script witch version of directX my project his. (is for a Unity tool)
I want to use it like this :
if(DirectX == "DX12") { ... }
CodePudding user response:
Based on this document, you can write something like this:
if (SystemInfo.graphicsDeviceType == GraphicsDeviceType.Direct3D12)
{
}