Help with Level of Detail coding
You can do this on an object by object basis quite easily, there is a built in feature specifically for Level Of Detail configuration. Under the Object tab in the Properties panel, you will see a Level of Detail menu. Click Add, then select the mesh you want from the dropdown and set the distance you want it to become visible at.