This page contains information on level of detail (LOD) for meshes. For information on LOD for shaders, see SubShader LOD value.
Level of detail (LOD) is a technique reduces the number of GPU operations that Unity requires to render distant meshes.
When a GameObject in the Scene is far away from the Camera, you see less detail compared to when the GameObject is close to the Camera. However, by default, Unity uses the same number of triangles to render it at both distances. This can result in wasted GPU operations, which can impact performance in your Scene.
The LOD technique allows Unity to reduce the number of triangles it renders for a GameObject based on its distance from the Camera. To use it, a GameObject must have a number of meshes with decreasing levels of detail in its geometry. These meshes are called LOD levels. The farther a GameObject is from the Camera, the lower-detail LOD level Unity renders. This technique reduces the load on the hardware for these distant GameObjects, and can therefore improve rendering performance.
To understand how to use LOD in Unity, you must first understand what LOD levels are, and how they work.
A LOD level is a mesh that defines the level of detail Unity renders for a GameObject’s geometry. When a GameObject uses LOD, Unity displays the appropriate LOD level for that GameObject based on the GameObject’s distance from the Camera.
Each LOD level exists in a separate GameObject, each of which has a Mesh Renderer component that displays that LOD level. For the very lowest level of detail, you can use a Billboard Asset, which Unity displays instead of a 3D mesh. Unity shows and hides these GameObjects as required. LOD levels must be child GameObjects to the GameObject they relate to.
The images below demonstrate how the LOD levels change according to distance from the Camera.
To use LOD, you must have a GameObject with a LOD Group component. The LOD Group component provides controls to define how LOD behaves on this GameObject, and references the GameObjects that Unity shows or hides for each LOD level. See LOD Group for details on the properties in this component.
You can set up LOD in Unity two ways:
To manually configure the distance from the camera at which Unity displays each LOD level, use the LOD Group component’s selection bar.
The LOD Group component accepts a maximum of eight LOD levels. LOD 0 is the closest to the Camera, and therefore the most detailed LOD level.
In the Quality settings window, you can configure LOD settings that affect all GameObjects in your Project.
There are two LOD settings you can configure: