Unity allows you to set the level of graphical quality it will attempt to render. Generally speaking, quality comes at the expense of framerate and so it may be best not to aim for the highest quality on mobile devices or older hardware since it will have a detrimental effect on gameplay. The Quality Settings inspector (menu: Edit > Project Settings > Quality) is used to select the quality level in the editor for the chosen device. It is split into two main areas - at the top, there is the following matrix:
Unity lets you assign a name to a given combination of quality options for easy reference. The rows of the matrix let you choose which of the different platforms each quality level will apply to. The Default row at the bottom of the matrix is not a quality level in itself but rather sets the default quality level used for each platform (a green checkbox in a column denotes the level currently chosen for that platform). Unity comes with six quality levels pre-enabled but you can add your own levels using the button below the matrix. You can use the trashcan icon (the rightmost column) to delete an unwanted quality level.
You can click on the name of a quality level to select it for editing, which is done in the panel below the settings matrix:
The quality options you can choose for a quality level are as follows:
|Name||The name that will be used to refer to this quality level|
|Pixel Light Count||The maximum number of pixel lights when Forward Rendering is used.|
|Texture Quality||This lets you choose whether to display textures at maximum resolution or at a fraction of this (lower resolution has less processing overhead). The options are Full Res, Half Res, Quarter Res and Eighth Res.|
|Anisotropic Textures||This enables if and how anisotropic textures will be used. The options are Disabled, Per Texture and Forced On (ie, always enabled).|
|AntiAliasing||This sets the level of antialiasing that will be used. The options are 2x, 4x and 8x multi-sampling.|
|Soft Particles||Should soft blending be used for particles?|
|Realtime Reflection Probes||Should reflection probes be updated during gameplay?|
|Resolution Scaling Fixed DPI Factor||Downscales the device’s screen resolution below its native resolution. For more details, see the platform-specific Player Settings pages, such as Android Player Settings and iOS Player Settings.|
|Shadows||This determines which type of shadows should be used. The available options are Hard and Soft Shadows, Hard Shadows Only and Disable Shadows.|
|Shadow resolution||Shadows can be rendered at several different resolutions: Low, Medium, High and Very High. The higher the resolution, the greater the processing overhead.|
|Shadow Projection||There are two different methods for projecting shadows from a directional light. Close Fit renders higher resolution shadows but they can sometimes wobble slightly if the camera moves. Stable Fit renders lower resolution shadows but they don’t wobble with camera movements.|
|Shadow Cascades||The number of shadow cascades can be set to zero, two or four. A higher number of cascades gives better quality but at the expense of processing overhead (see Directional Light Shadows for further details).|
|Shadow Distance||The maximum distance from camera at which shadows will be visible. Shadows that fall beyond this distance will not be rendered.|
|Shadowmask Mode||Sets the shadowmask behaviour when using the Shadowmask Mixed lighting mode. Use the Lighting window (menu: Window > Lighting > Settings) to set this up in your Scene.|
|Distance Shadowmask||Unity uses real-time shadows up to the Shadow Distance, and baked shadows beyond it.|
|Shadowmask||hadowmask: Static GameObjects that cast shadows always cast baked shadows.|
|Shadow Near Plane Offset||Offset shadow near plane to account for large triangles being distorted by shadow pancaking.|
|Blend Weights||The number of bones that can affect a given vertex during an animation. The available options are one, two or four bones.|
|VSync Count||Rendering can be synchronised with the refresh rate of the display device to avoid “tearing” artifacts (see below). You can choose to synchronise with every vertical blank (VBlank), every second vertical blank or not to synchronise at all.|
|LOD Bias||LOD levels are chosen based on the onscreen size of an object. When the size is between two LOD levels, the choice can be biased toward the less detailed or more detailed of the two models available. This is set as a fraction from 0 to +infinity. When it is set between 0 and 1 it favors less detail. A setting of more than 1 favors greater detail. For example, setting LOD Bias to 2 and having it change at 50% distance, LOD actually only changes on 25%.|
|Maximum LOD Level||The highest LOD that will be used by the game. See note below for more Information.|
|Particle Raycast Budget||The maximum number of raycasts to use for approximate particle system collisions (those with Medium or Low quality). See Particle System Collision Module.|
|Async Upload Time Slice||The amount of CPU time in milliseconds per frame to spend uploading buffered textures to the GPU. See Async Texture Upload.|
|Async Upload Buffer Size||The size in MB for the Async Upload buffer. See Async Texture Upload.|
Models which have a LOD below the MaximumLOD level will not be used and omitted from the build (which will save storage and memory space). Unity will use the smallest LOD value from all the MaximumLOD values linked with the quality settings for the target platform. If an LOD level is included then models from that LODGroup will be included in the build and always loaded at runtime for that LODGroup, regardless of the quality setting being used. As an example, if LOD level 0 is used in any quality setting then all the LOD levels will be included in the build and all the referenced models loaded at runtime.
The picture on the display device is not continuously updated but rather the updates happen at regular intervals much like frame updates in Unity. However, Unity’s updates are not necessarily synchronised with those of the display, so it is possible for Unity to issue a new frame while the display is still rendering the previous one. This will result in a visual artifact called “tearing” at the position onscreen where the frame change occurs.
It is possible to set Unity to switch frames only during the period where the display device is not updating, the so-called “vertical blank”. The VSync option on the Quality Settings synchronises frame switches with the device’s vertical blank or optionally with every other vertical blank. The latter may be useful if the game requires more than one device update to complete the rendering of a frame.
Anti aliasing improves the appearance of polygon edges, so they are not “jagged”, but smoothed out on the screen. However, it incurs a performance cost for the graphics card and uses more video memory (there’s no cost on the CPU though). The level of anti-aliasing determines how smooth polygon edges are (and how much video memory does it consume).
Soft Particles fade out near intersections with other scene geometry. This looks much nicer, however it’s more expensive to compute (more complex pixel shaders), and only works on platforms that support depth textures. Furthermore, you have to use Deferred Shading or Legacy Deferred Lighting rendering path, or make the camera render depth textures from scripts.