Reputation: 27
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") { ... }
Upvotes: 0
Views: 403
Reputation: 571
Based on this document, you can write something like this:
if (SystemInfo.graphicsDeviceType == GraphicsDeviceType.Direct3D12)
{
}
Upvotes: 1