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