title: Get position of raycast even when it doesn't hit anything
body: <p>I'm working on a simple building system and here's a small gif of what I've got. Right now the preview object disappears when raycast doesn't hit anything. I want it to change it's Y position when I look up but then the raycast doesn't return anything, how would I achieve that?</p>
  
  <p><a href="https://gfycat.com/ifr/ShallowTepidAnkolewatusi" rel="nofollow noreferrer">https://gfycat.com/ifr/ShallowTepidAnkolewatusi</a></p>
  
  <p>Here's the bit of code that's responsible for preview position</p>
  
  <pre><code>        if (deployPreview)
          {
              if (Physics.Raycast(cam.position, cam.forward, out deployableHit, 5, deployableMask))
              {
                  if (deployPreview.gameObject.activeSelf)
                  {
                      if (deployableHit.transform != transform)
                      {
                          if (heldDeployable.deployable.DepType == EDeployableType.Buildable)
                          {
                              HandleBuilding();
                          }
                          else
                          {
                              deployPos = deployableHit.point;
                              deployPreview.rotation = transform.rotation;
                              deployPreview.position = deployPos;
                          }
                      }
                  }
              }
          }
  </code></pre>