Check if object is in view of main camera

Hi all, so ive got a little isometric game and the camera is static with the whole game area in view. To handle the edge of the map i originally had a bunch of invisible walls but id like to allow the player to go off the edge of the map and then reset them to a certain position.

The reset is no problem, but im having issues with identifying when the object has gone out of the main camera view area. Ive tried a few methods ive found online such as OnBecameInvisible and Renderer.IsVisible. It could be im using them wrong but none seem to give me the desired effect.

Any help would be much appreciated.

Thanks in advance.

You could use Camera.WorldToScreenPoint() or even Camera.WorldToViewportPoint() to get the camera’s notion of where this is and check it against boundaries.