Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

[Solved! (My mistake)] Physics2D.Raycast

Discussion in 'Documentation' started by Effervescent, Mar 18, 2015.

  1. Effervescent

    Effervescent

    Joined:
    Mar 7, 2015
    Posts:
    31
    Some parameter descriptions in Physics2D.Raycast appear to be Russian!

    EDIT: I'm so sorry! I don't know how I managed to end up in the Russian version (or at least what is intended to be) of the API...
     
  2. Chunrand

    Chunrand

    Joined:
    Feb 21, 2015
    Posts:
    27
    Actually yes I see russian too...

    layerMask Фильтр для обнаружения коллайдеров только на определённых слоях.
    minDepth Включает только объекты с координатой Z (глубиной) выше, чем это значение.
    maxDepth Включает только объекты с координатой Z (глубиной) меньше, чем это значение.