object visible for camera or not

which function could you use to know if an game object is visible for a camera or not, even partly seeing the object.

lesfundi

i attach this code to the object, something wrong this…

function Update(){

if (renderer.isVisible)
{
	print ("I see it");
}

else
{
	print ("I don't see it");
	
}}

this function is not a correct one for that,

http://forum.unity3d.com/viewtopic.php?p=227091&sid=d7bbd655020933cdcb04ccdefb7b58db

There isn’t a good function for it that I know of. I’m honestly not sure how to solve this problem for the general case.

i used this but when i look away is work semi-okay → when i look to right of left it works but when i look 180 degrees it doesn’t, the script tells is it visible… :frowning:

lesfundi