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:
@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.
Many thanks, feel free to ask around any question you may have!