Код
public bool IsTransformInFov(Transform _object)
{
if (!myCamera.enabled)
return false;
Collider[] colliders = _object.GetComponentsInChildren<Collider>();
var planes = GeometryUtility.CalculateFrustumPlanes(myCamera);
foreach (var collider in colliders) {
if (GeometryUtility.TestPlanesAABB(planes, collider.bounds))
return true;
}
return false;
}