Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Obsolete
Use SetGraphicsAPIs/GetGraphicsAPIs instead

PlayerSettings.useDirect3D11

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public static var useDirect3D11: bool;
public static bool useDirect3D11;

Description

Should Direct3D 11 be used when available?

Using DX11 enables more modern graphics features, like Compute Shaders, tessellation shaders and other shader model 4.0-5.0 features.

This flag is specific to Windows Editor, Standalone and Web Player builds.

When set to true, Unity will try to use the Direct3D 11 graphics API (which works on Windows Vista or later OS, and DX10+ level GPU). If that is not available (e.g. DX9 level GPU or Windows XP), Direct3D 9 will be used instead.

When set to false, Direct3D 9 API will be used.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961