Hi guys
Short and sweet: if one has a model with three LOD’s, where to put a script that handles OnWillRenderObject?
The prefab hierarchy looks like this:
Model
- LOD0 - Script lives here
- LOD1
- LOD2
As long as the model is near, the script gets OnWillRenderObject. But when the object is far, LOD1 and 2 start rendering, and this method is no longer called.
So what to do?
- I can’t put the script on all three LOD’s. That’s silly
- I can’t put the script on the prefab root, there is no render geometry there, so OnWillRenderObject never gets called.