Skip to content

LOD Mesh

Updated

One detail level inside a LOD Group, shown from a set distance.

Type
comp-lod-mesh
Script class
LODMeshComponent
Per entity
One
Version
1.0.0

Read about it in LOD and caching: what it does, how to use it from a script, and examples.

The props the runtime declares for this component, with their defaults and accepted ranges.

Prop Default Range
distance 0 0 ≤ x ≤ 10000

Run it in the browser, read its scripts, and download it as an XR Creator project.

#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(LODMeshComponent);
if (component) log(component.props);
}