Why isnt renderer.isVisible not working?

the script i have is:

void Update ()
{
    bool isVisible = renderer.isVisible;

    if (isVisible)
    {
        renderer.enabled = true;
    }else{
        renderer.enabled = false
    }
}

my question is, How come this script isnt working?

Thoughts:

  • Unity already does this kind of culling, so all you are doing is adding more overhead.
  • Any object with the renderer turned off is not considered visible even when it is in the view area of any camera.
  • Note isVisible is true when seen from any camera. Back in 3.x days that included the scene camera when in the Editor. That may still be true.