OnBecameInvisible

How to know if an object has left the screen. should it be applied to the main camera or the object

to a component on the object you want to check if it left camera range in any of the 6 directions

yes