title: Checking if a renderer is visible from a specific camera in Unity3d
body: <p>There used to be an <a href="http://wiki.unity3d.com/index.php/IsVisibleFrom" rel="nofollow noreferrer">"isVisibleFrom"</a> method in Unity before, but now there isn't. Here is my code:</p>
  
  <pre><code>using UnityEngine;
  
  public class CheckPerspective : MonoBehaviour
  {
      Renderer rend;
  
      void Start()
      {
          rend = GetComponent&lt;Renderer&gt;();
      }
  
      void FixedUpdate()
      {
          if (rend.isVisible)
          {
              print("hi");
          }
      }
  }
  </code></pre>
  
  <p>This code prints "hi" when I'm looking at the object, but this happens even if I'm looking at it from the editor camera.  </p>
  
  <p>I want to use something like "isVisibleFrom" to not let this happen.<br>
   Is there anything else I can use or do?</p>