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…?
Thanks!
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…?
Thanks!
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
if(renderer.isVisible){
//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
OnBecameVisible
is always run?
and
renderer.isVisible
is not even available in the compiler (it is not known)?
i still spend hours in this matters
please reply here and alert me @
e2444@yahoo.com