Home > Software design >  Get DirectX version by script UNITY
Get DirectX version by script UNITY

Time:10-03

I want to know by script witch version of directX my project his. (is for a Unity tool)

Exemple here

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)
{
        
}
  • Related