# Distance-based LODs

The Enoch Avatar Loader module includes an AvatarLod example that can be imported from the Unity Package Manager window.

{% hint style="info" %}
After importing the AvatarLod sample you can find the code sample in\
**Assets/Samples/Enoch Avatar Loader/1.0.0/AvatarLod/AvatarLodExample.cs**
{% endhint %}

This example demonstrates how to load multiple levels of detail (LOD) for avatar meshes and configure distance-based render optimization. By enabling LOD, Unity displays the appropriate LOD level for the rendered avatar based on the avatar's distance from the camera.

Using the [Avatar API ](/enoch/developers-integration-guide/unity-integration/load-avatars.md)and [Avatar Configurations](/enoch/developers-integration-guide/unity-integration/optimize/avatar-configuration.md), this approach downloads multiple avatar LODs, extracts the avatar meshes, and configures the final avatar with LOD support enabled.

{% hint style="warning" %}
This example does not support Avatar Configurations with TextureAtlas=None.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://enoch-app.gitbook.io/enoch/developers-integration-guide/unity-integration/code-examples/distance-based-lods.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
