- Home /
Graphics raycasting if renderer in game object is seen and not occluded
I understand there is a way to test if something is within the bounding box of a camera frustrum and also how to physics raycast it. But, how do you check if a game object is seen or not (including cases of occlusion) - without using a physics collider?
Answer by Phlegma · Aug 28, 2019 at 09:43 PM
Do you mean something like this?:
"OnBecameInvisible is called when the renderer is no longer visible by any camera." https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnBecameInvisible.html
Your answer
Follow this Question
Related Questions
Visual area occupied by each object in field of view 0 Answers
Occlusion Culling Issue (Walls/Objects Disappear) 0 Answers
Changing two different objects renderer colour 1 Answer
Trigger when something enters the Field of View of the Camera 1 Answer
Duplicate everything in a set space in all directions? 2 Answers