Version: 2019.3
Importing LOD Meshes
DirectX

Graphics API support

Unity supports DirectX, Metal, OpenGL, and Vulkan graphics APIs, depending on the availability of the API on a particular platform. Unity uses a built-in set of graphics APIs, or the graphics APIs that you select in the Editor.

To use Unity’s default graphics APIs:

  1. Open the Player settings (menu: Edit > Project Settings, then select the Player category).

  2. Navigate to Other Settings and make sure Auto Graphics API is checked:

    Using the default graphics APIs
    Using the default graphics APIs

When Auto Graphics API for a platform is checked, the Player build includes a set of built-in graphics APIs and uses the appropriate one at run time to produce a best case scenario.

When Auto Graphics API for a platform is not checked, the Editor uses the first API in the list. So, for example, to see how your application runs on OpenGL in the Editor, move OpenGLCore to the top of the list and the Editor switches to use OpenGL renderingThe process of drawing graphics to the screen (or to a render texture). By default, the main camera in Unity renders its view to the screen. More info
See in Glossary
.

To override the default graphics APIs and use an alternate graphics API for the Editor and Player, uncheck the relevant Auto Graphics API, click the plus (+) button and choose the graphics API from the drop-down menu.

Adding OpenGLCore to the Graphics APIs for Windows list
Adding OpenGLCore to the Graphics APIs for Windows list

The graphics API at the top of the Auto Graphics API list is the default API. If the default API isn’t supported by the specific platform, Unity uses the next API in the Auto Graphics API list.

For information on how graphics rendering behaves between the platforms and ShaderA small script that contains the mathematical calculations and algorithms for calculating the Color of each pixel rendered, based on the lighting input and the Material configuration. More info
See in Glossary
language semantics, see Platform-specific rendering differences. Tessellation and geometry shaders are only supported by a subset of graphics APIs. This is controlled by the Shader Compilation Target level.

For graphics API specific information, see documentation on Metal, DirectX and OpenGL.


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