Renderer.IsVisible returning true even when object is far outside camera view!

Hello!

I’m experiencing an issue where the Renderer.IsVisible on an object is returning true even when the object is clearly outside the frustrum view of the camera.

I’ve created this screen capture that shows the issue here.

The grey/brown capsule in the scene is the object in question. I have it selected in the hierarchy, and the VisibilityCheck script on it sends a Debug message to the console every frame when Renderer.IsVisible is true.

As you can see, when I move the camera way off to the left, far beyond when the capsule leaves the camera view, the console still says it’s visible. Beyond the point of shadows being in frame.

I’ve also made sure the scene view is pointed at the sky just in case, since I read the scene view counts as a camera. I tried deactivating it entirely too, and this issue also persists in builds.

This is the VisibilityCheck script just in case it helps:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class VisibilityCheck : MonoBehaviour
{
    Renderer m_Renderer;
    // Use this for initialization
    void Start()
    {
        m_Renderer = GetComponent<Renderer>();
    }

    // Update is called once per frame
    void Update()
    {
        if (m_Renderer.isVisible)
        {
            Debug.Log("Object is visible");
        }
        else Debug.Log("Object is no longer visible");
    }
}

I’m going out of my mind here. What’s going on? Please help!

Thanks so much,
Reid

As per the docs:

Are you looking at the object through the scene view camera?

No - the scene view is pointed to the sky.