Version: 2020.2
Editor
Package Manager

Graphics

Use the Graphics settings (main menu: Edit > Project Settings, then select the Graphics category) to apply global settings for Graphics.

Graphics settings
Graphics settings

This section provides documentation on the following groups of properties:

Scriptable Render Pipeline Settings

This allows you to define a series of commands to control exactly how the SceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
should be rendered (instead of using the default rendering pipeline used by Unity). For more information on this feature, see the Scriptable Render Pipeline package documentation.

Camera Settings

These properties control various 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
settings.

Property Function
Transparency Sort Mode Define the order for rendering objects by their distance along a specific axis. Renderers in Unity are sorted by several criteria, such as their layer number or their distance from the cameraA component which creates an image of a particular viewpoint in your scene. The output is either drawn to the screen or captured as a texture. More info
See in Glossary
. This is generally only useful in 2D development: for example, sorting SpritesA 2D graphic objects. If you are used to working in 3D, Sprites are essentially just standard textures but there are special techniques for combining and managing sprite textures for efficiency and convenience during development. More info
See in Glossary
by height or along the Y-axis.
Default Sort objects based on the Camera mode.
Perspective Sort objects based on perspective view.
Orthographic Sort objects based on orthographic view.
Custom Axis Sort objects based on the sort mode defined with the Transparency Sort Axis.
Transparency Sort Axis Define a custom Transparency Sort Mode.

Tier Settings

Tier Settings as displayed in the Player settings
Tier Settings as displayed in the Player settings

These settings allow you to make platform-specific adjustments to rendering and shader compilation, by tweaking built-in defines. For example, you can use this to enable Cascaded Shadows on high-tier iOSApple’s mobile operating system. More info
See in Glossary
devices, but to disable them on low-tier devices to improve performance. Tiers are defined by Rendering.GraphicsTier.

Property Function
Standard Shader Quality Set the quality of the Standard ShaderA built-in shader for rendering real-world objects such as stone, wood, glass, plastic and metal. Supports a wide range of shader types and combinations. More info
See in Glossary
to High, Medium, or Low.
Reflection Probes Box Projection Enable projection for reflection UV mappings on Reflection ProbesA rendering component that captures a spherical view of its surroundings in all directions, rather like a camera. The captured image is then stored as a Cubemap that can be used by objects with reflective materials. More info
See in Glossary
.
Reflection Probes Blending Enable blending on Reflection Probes.
Detail Normal Map Enable Detail Normal Map sampling, if assigned.
Enable Semitransparent Shadows Enable Semitransparent Shadows.
This adds or removes the UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS shader compiler define.
Enable Light Probe Proxy Volume Enable rendering a 3D grid of interpolated Light ProbesLight probes store information about how light passes through space in your scene. A collection of light probes arranged within a given space can improve lighting on moving objects and static LOD scenery within that space. More info
See in Glossary
.
Cascaded Shadows Enable using cascaded shadow maps.
This adds or removes the UNITY_NO_SCREENSPACE_SHADOWS shader compiler define.
Prefer 32 bit shadow maps Enable 32-bit float shadow map when you are targeting PS4 or platforms using DX11 or DX12.
Most platforms have a fixed shadow map format that you can’t adjust. These vary in format, and can be 16-bit, 24-bit, or 32-bit, and can also be either float- or integer-based. 32-bit shadow maps give higher quality shadows than 16-bit, but use increased memory and bandwidth on the GPU.
Note: To use 32-bit shadow maps, make sure the depth buffer is also set to 32-bit.
Use HDR Enable High Dynamic Range rendering for this tier.
HDR Mode Select the format to use for the HDR buffer when HDRhigh dynamic range
See in Glossary
is enabled for the current Graphics Tier. By default, this is set to FP16.
FP16 Color render textureA special type of Texture that is created and updated at runtime. To use them, first create a new Render Texture and designate one of your Cameras to render into it. Then you can use the Render Texture in a Material just like a regular Texture. More info
See in Glossary
format, 16-bit floating point per channel.
R11G11B10 Color render texture formatA file format for handling textures during real-time rendering by 3D graphics hardware, such as a graphics card or mobile device. More info
See in Glossary
. R and G channels are 11-bit floating point, B channel is 10-bit floating point.
Rendering PathThe technique Unity uses to render graphics. Choosing a different path affects the performance of your game, and how lighting and shading are calculated. Some paths are more suited to different platforms and hardware than others. More info
See in Glossary
Choose how Unity should render graphics. Different rendering paths affect the performance of your game, and how lighting and shading are calculated. Some paths are more suited to different platforms and hardware than others.
Deferred rendering is not supported when using Orthographic projection. If the camera’s projection mode is set to Orthographic, these values are overridden, and the camera always uses Forward rendering. For more information, see Rendering Paths.
Forward The traditional rendering path. This supports all the typical Unity graphics features (normal maps, per-pixel lights, shadows etc.). However under default settings, only a small number of the brightest lights are rendered in per-pixel lighting mode. The rest of the lights are calculated at object vertices or per-object.
Deferred Deferred shadingA rendering path in the Built-in Render Pipeline that places no limit on the number of Lights that can affect a GameObject. All Lights are evaluated per-pixel, which means that they all interact correctly with normal maps and so on. Additionally, all Lights can have cookies and shadows. More info
See in Glossary
has the most lighting and shadow fidelity, and is best suited if you have many realtime lightsLight components whose Mode property is set to Realtime. Unity calculates and updates the lighting of Realtime Lights every frame at runtime. No Realtime Lights are precomputed. More info
See in Glossary
. It requires a certain level of hardware support.
Legacy Vertex Lit Legacy Vertex Lit is the rendering path with the lowest lighting fidelity and no support for real-time shadows. It is a subset of Forward rendering path.
Legacy Deferred (light prepass) Legacy Deferred is similar to Deferred Shading, just using a different technique with different trade-offs. It does not support the Unity 5 physically-based standard shader.
Realtime Global Illumination CPU Usage Choose how much CPU usage to assign to the final lighting calculations at runtime. Increasing this makes the system react faster to changes in lighting at a cost of using more CPU time.
Note: Some platforms allow all CPUs to be occupied by worker threads whereas some enforce maximums. For example, Xbox One and PS4 allow a maximum of 4 CPU cores. For Android devices, if it is a bigLittle architecture, only the little CPUs are used; otherwise the maximum is one less than the total number of CPUs.
Low 25% of the allowed CPU threads are used as worker threads.
Medium 50% of the allowed CPU threads are used as worker threads.
High 75% of the allowed CPU threads are used as worker threads.
Unlimited 100% of the allowed CPU threads are used as worker threads.

Built-in shader settings

Use these settings to specify which Shader to use for each of the listed built-in features.

Rendering path Shader to use
Deferred Use with Deferred shading.
Deferred Reflection Use with Reflection Probes along deferred lighting.
Screen Space shadows Use with cascaded shadow maps for directional lights on PC/console platforms.
Legacy deferred Use with Legacy Deferred lighting.
Motion vectors Use for object-based motion vector calculations.
Lens FlareA component that simulates the effect of lights refracting inside a camera lens. Use a Lens Flare to represent very bright lights or add atmosphere to your scene. More info
See in Glossary
Use with Lens Flares.
Light Halo Use with Light Halos.

For each of these features, you can choose which type of Shader to use:

  • No Support disables this calculation. Use this setting if you are not using deferred shading or lighting. This will save some space in the built game data files.
  • Built-in Shader uses Unity’s built-in Shaders to do the calculation. This is the default.
  • Custom Shader uses your own compatible Shader to do the calculation. This enables you to do deep customization of deferred rendering.

When you choose Custom shader, a 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
reference property appears below the feature property where you can set a reference to the Shader you want to use.

Always-included Shaders

Specify a list of Shaders that are always stored along with the Project, even if nothing in your Scene actually uses them. It is important to add Shaders used by streamed AssetBundles to this list to ensure they can be accessed.

To add a shader to the list, increase the value in the Size property.

To remove the last Shader in the list, decrease the Size property.

To remove a Shader which is not the last one in the list, you can set the value to None.

Shader stripping

Lower your build data size and improve loading times by stripping out certain shaders.

By default, Unity looks at your Scenes and lightmapping settings to figure out which fogA post-processing effect that overlays a color onto objects depending on the distance from the camera. Use this to simulate fog or mist in outdoor environments, or to hide clipping of objects near the camera’s far clip plane. More info
See in Glossary
and lightmapping modes are not in use, and skips corresponding Shader variantsAn internal version of the Shader that Unity generates according to the specific combination of Shader keywords and their status. If you add more keywords to the Shader, you increase the number of possible combinations, which results in more Shader Variants. More info
See in Glossary
.

However, you can choose specific modes if you are building asset bundles to ensure that the modes you want to use are included.

Lightmapping

By default, the Lightmap modes property defaults to Automatic, meaning that Unity decides which shader variants to skip.

To specify which modes to use yourself, change this to Custom and enable or disable the following lightmapping modes:

  • Baked Non-Directional
  • Baked Directional
  • Realtime Non-Directional
  • Realtime Directional
  • Baked Shadowmask
  • Baked Subtractive

Fog

By default, the Fog Modes property defaults to Automatic, meaning that Unity decides which shader variants to skip.

To specify which modes to use yourself, change this to Custom and enable or disable the following fog modes:

  • Linear
  • Exponential
  • Exponential Squared

Instancing Shader variants

Unity strips instancing variants if GPU instancing is not enabled on any GameObjectThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary
in the Scene. You can use the Instancing Variants property to override the default stripping behavior.

Value Description
Strip Unused (Default value) When Unity builds a Project, it only includes instancing Shader variants if at least one Material referencing the Shader has Enable instancing enabled. Unity strips any Shaders that are not referenced by Materials with Enable instancing disabled.
Strip All Strip all instancing Shader variants, even if they are being used.
Keep All Keep all instancing Shader variants, even if they are not being used.

Shader preloading

Specify a list of shader variant collection assets to preload while loading the game. Shader variants specified in this list are loaded during entire lifetime of the application. Use it for preloading very frequently used shaders. See Optimizing Shader Load Time page for details.

To add a shader variant collection to the list, increase the value in the Size property.

See also


  • 10–01–2018 Page amended
  • Updated for Unified Settings changes
  • Updated Tier Setting description
  • New features added in 5.6
Editor
Package Manager