Hey guys, I asked this on the forums but didn’t get a response, and I’m interested in any thoughts anyone might have.
I have a complex model with four LODs. In addition to the mesh, this model system has a light attached, a couple of scripts, some particle systems, audio, etc. It is quite complicated. What I would like to do is modify various parts of the model system depending on which LOD level is currently active. There is no reason for all that complex stuff to be firing when the model is sitting at LOD3 and you can barely see it! (In particular, I want to reduce the light range on each successive LOD, because they are causing far too many draw calls).
So I went into the docs looking for a message along the lines of OnLODSwitch() that I could use, but sadly, no such message seems to exist. Nor does there appear to be any way for me to query for which LOD is currently being displayed.
The workaround that I can come up with is to use concentric spherical triggers which have radii about the same as where the LODs switch, and then use the OnTriggerEnter to fire separate scripts (one for each LOD) to modify the model system components.
So, my question is two-fold.
- Is that the best way to handle what I want to do (triggers)?
- Would a OnLODSwitch() message and a GetCurrentLOD() method be a useful feature request, or do you consider it redundant with the triggers?