[SOLVED] If game object is in camera's field of view

Hello, I’ve been trying to create a script that will turn true once a specific game object is in a camera’s field of view but I just can’t get it working right. I want the script to turn true only when the selected game object is within the field of view of the camera that holds the script. Check the picture if that doesn’t help.

Hi @ViniciusFXavier and welcome,

Check the following post, it provides sample code on how to setup a visibility check against the camera frustum:

1 Like

@Leonidas thank you very much for the quick response.

And by the way I ended up taking a look at your project and I really liked it.
It was one of the reasons why I decided to study this framework.

1 Like

Many thanks, feel free to ask around any question you may have!