Isaac
Isaac

Reputation: 27

Get DirectX version by script UNITY

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") { ... }

Upvotes: 0

Views: 403

Answers (1)

Soroush Hosseinpour
Soroush Hosseinpour

Reputation: 571

Based on this document, you can write something like this:

if (SystemInfo.graphicsDeviceType == GraphicsDeviceType.Direct3D12)
{
        
}

Upvotes: 1

Related Questions