renderer.isVisible information

Hey,

I’m using isVisible so far to check whether the other online player is off the screen - if he is, the in-game chat appears as a gui. Otherwise if the player is visible, it’ll appear like a speech bubble above the player.

It works fine, however the object has to move a bit further from the screen before it is recognised as not visible
However there’s almost nothing on the doc page for it - Unity - Scripting API: Renderer.isVisible

So I’m struggling how to find out how to make it more accurate if possible.

Also, if you guys have another idea about how to use it that’d be great.

Does anyone know where I can find more information about this?

Thanks

One alternative is to instead use a camera projection function ( WorldToScreenPoint or WorldToViewportPoint ) and check if a certain point(s) that’s local to the player ends up on the screen. The best spot I could think of is the general point in 3D space where their speech bubbles would be. That way you can also narrow or expand the window as you please in code.