title: How to get the direction in which the camera is facing in Unity3D?
body: <p>I need to know the direction in which the camera is facing and move forward in that direction. Also I need to know to know the perpendicular horizontal and vertical directions with respect to the above direction. How to do that?</p>
  
  <p>Also by default when I move my camera in only z-direction (starting from (0,0,0) and facing in z-direction), I create new instances of prefabs in a range at positions between some -x to +x and -y to +y, independent of each other. Now how will I determine where to create the instances depending on the new direction of camera?</p>