Skip to content

Log LOD switches while you tune distances

Updated

A grove of trees with three levels of detail each: amber and detailed near, blue and coarse further out, a violet cone far away. The script logs every switch of the first tree with the camera’s distance.

Scroll to zoom out and in, and watch the trees swap levels and the log report each switch of the front tree. Drag to orbit the camera.

Log LOD switches while you tune distances

The script is explained step by step in Log LOD switches while you tune distances.

Download the project file below, then import it in XR Hub with Projects › New › Import, as described in Projects and templates. It opens in XR Creator with the same scene you see running above, each script already attached to its Behavior entity. From there you can edit the scripts, adjust components and their props, preview your changes, and deploy the result as a world of your own.

LodMonitor.xrproj