Distance-based LODs
Configure distance-based rendering.
Last updated
Configure distance-based rendering.
Last updated
The Ready Player Me Avatar Loader module includes an AvatarLod example that can be imported from the Unity Package Manager window.
After importing the AvatarLod sample you can find the code sample in Assets/Samples/Ready Player Me Avatar Loader/1.0.0/AvatarLod/AvatarLodExample.cs
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 and Avatar Configurations, this approach downloads multiple avatar LODs, extracts the avatar meshes, and configures the final avatar with LOD support enabled.
This example does not support Avatar Configurations with TextureAtlas=None.