OnBecameVisible is not working correctly!

Hi! I want to make a script where if the camera is facing an object, that object needs to become visible or enabled, and if im not facing it, it should get disabled or something. function OnBecameVisible only works if the mesh renderer on that object is enabled, that defeats the purpose of that script. How do I make a script that enables/disables the object if its visible, no matter if its disabled or enabled already? Thanks!

For this script I disabled the mesh renderer in the editor, and its not working :confused:

#pragma strict

var visible : boolean =false;

function Start () {


function Update () {
	if(visible ==true){
		renderer.enabled = true;

function OnBecameVisible() {
	visible = true;