Know if gameObject is being seen

Hi people!

Is there a quick way to check if gameObject is inside a camera’s view? I mean, if the user can see it on the screen, if there’s no wall blocking it, or if its inside the camera’s field of view, etc…?


put this on an object to start this function when it became visable by the camer

function OnBecameVisible(){
//do something


and use this in a function to do something if it is visable


//do something


these will both work when your editor view is on the object as well so use a debug in them to check it

is always run?

is not even available in the compiler (it is not known)?

i still spend hours in this matters

please reply here and alert me @