Search Unity

Rays from the Camera - Little errors

Discussion in 'Documentation' started by Uber6, Jun 17, 2015.

  1. Uber6

    Uber6

    Joined:
    Sep 30, 2013
    Posts:
    25
    I have stumbled upon two little mistakes in the documentation:

    http://docs.unity3d.com/Manual/CameraRays.html

    First is:

    "if (Physics.Raycast(ray, hit))" should be "if (Physics.Raycast(ray, out hit)) "

    And second is that the C# example is a Java Script example and the other way around.
     
  2. duck

    duck

    Unity Technologies

    Joined:
    Oct 21, 2008
    Posts:
    358
    Thanks for the heads up! We'll fix this as soon as possible.