Hey guys,
I’m not finding anything in the docs, but perhaps my search-fu is weak today.
I have a prefab that has a mesh with four levels of LOD on it. I would like to attach a simple script to this prefab that fires whenever the LOD level changes (e.g. if the mesh goes from LOD0 to LOD1, the script runs, like a OnLODChange() or somesuch). Basically this prefab has a lot of parts (light, sound, particles, etc) and I would like to turn off/on some of them as a function of the current LOD level being displayed (especially I want to change the light range, which is causing a whole lot of unnecessary draw calls).
Is there any such trigger function?
Nobody has any ideas, huh? And UnityAnswers seems to be down right now, so I can’t even hunt through that, grr. Do y’all not use LODs very much? I find I’m putting LODs on practically everything 
Anyway, I’ve trolled through the docs some more, and I don’t see any message that would work along the lines of OnLODChange(). The only thing I can think to do is to put concentric spheres around the object to act as trigger colliers, set their radii to approximately where the LOD changes happen, and then use OnTriggerEnter()/OnTriggerExit() to fire the scripts. Kind of clunky though. I think that means I’m gong to need a separate script for each level of LOD (rather than a single script that just uses a switch statement).
Anyone else have any better solutions? Would an OnLODChange() message be a reasonable feature request, or do you think using triggers is what the devs want us to do?